uicontrol issues on figure
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!