uicontrol issues on figure
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Environment and Settings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!