Place this code to the call back of listbox
index_selected = get(hObject,'Value'); if ( index_selected == X ) TC = 2; PC = 3; else TC = 6; PC = 7; end like this.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!