필터 지우기
필터 지우기

Popup menu values disappearing

조회 수: 1 (최근 30일)
Adam Kaas
Adam Kaas 2012년 5월 30일
I have some popup menus who's values will change based on a different popup menu. This is exactly what I want it to do, however if I wanted to manually change any of the values in the popup menus, I can't. They appear to be fixed. For those of you familiar with some of my code, this issue occurs only when I select one of my profiles. Even when I switch back to a manual profile, the only options I have for some of my other popup menus are whatever it was based on the previous profile selected.
  댓글 수: 2
Adam Kaas
Adam Kaas 2012년 5월 31일
Do I need to provide some code for this or does it make sense?
Adam Kaas
Adam Kaas 2012년 5월 31일
I think I might have just found a way to fix it if I can find the solution or if someone knows it. When a profile is selected I'm doing this:
set(handles.Popupmenu, 'String', Option1);
Is there a way to do something like this:
set(handles.Popupmenu, 'String', Option1, Option2, Option3);
So that way it sets multiple Strings to the popup menu?

댓글을 달려면 로그인하십시오.

채택된 답변

Adam Kaas
Adam Kaas 2012년 5월 31일
Took a bit of digging, but found it.
set(handles.Popupmenu, 'String', {'Option1' 'Option2' 'Option3' 'Option4'});
Found it here:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by