Effacer les filtres
Effacer les filtres

GUI Another help

1 vue (au cours des 30 derniers jours)
Nasir Qazi
Nasir Qazi le 3 Avr 2012
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 ?

Réponse acceptée

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

Plus de réponses (1)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by