How can I use variable names for the popupmenu in GUI Matlab?

조회 수: 1 (최근 30일)
Jennifer Fox
Jennifer Fox 2016년 6월 27일
답변: Walter Roberson 2016년 6월 27일
Hay everybody, I am working on some Neurodata and want to plot some of results via Gui afterwards.
The amount of data differs (atm it's about 78), so I wanted the popupmenu to show all of their names.
My idea was to use:
set(handles.untitled1,'String',{name(i)});
because I've an array called "name" 1x78 which contains all the names, but unfortunatly it doesn't work.
Thanks for your help already

채택된 답변

Walter Roberson
Walter Roberson 2016년 6월 27일
set(handles.untitled1, 'String', name)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by