GUI Another help

2 次查看(过去 30 天)
Nasir Qazi
Nasir Qazi 2012-4-3
I have list of components
1) Methane
2) Propane
3) Butane
I am using list drop down box to include all these components, but these components do have a associated properties like 'Tc=2','Pc=3' for each of the components , I want to a GUI program to load them when selected , is it possible ? how ?

采纳的回答

SUDIP PODDAR
SUDIP PODDAR 2012-4-3
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.

更多回答(1 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by