How to add a string to a popup-menu using a GUI?
조회 수: 15 (최근 30일)
이전 댓글 표시
I need to add another string to a popup-menu button. Im using the function 'strcat' , but it adds the new string to all existing string and i want it to add only in a new line. What function i have to use?
Thanks
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2012년 9월 25일
편집: Azzi Abdelmalek
2012년 9월 25일
use strvcat or char or {}
a='you';b='are';c='crazy'
s=char(a,b,c)
set(handles.popupmenu1,'string',s)
or
s=strvcat(a,b,c)
or
s={a,b,c}
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!