uicontrol issues on figure
Ältere Kommentare anzeigen
I am trying to use uicontrol to create a menu. I can't figure how to query the value of the popupmenu and I don't understand local function defintion.
X = readcell('Data.xlsx');
Matrix = cellstr(X(:,1));
dd = uicontrol(fig,'Style','popupmenu','Position',[20 100 80 250],'String', Matrix,...?);
X is an excel spredsheet that contains data in the follow:
String Value Value Value
I've read in the string portion of the sheet and now I want to query the value when I click something in the popupmenu. Again, I am not familiar with local function definition and it confuses me. I know that a solution may invole using a callback/buttondownfcn but I dont understand how to query those in the same script. Thanks
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Environment and Settings finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!