Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How can I open a pre-made figure window by selecting from listbox in GUI?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello! I am struggling to figure this out for 3 days.. What I am wondering is this. I have a main program and many subprograms. And I want to open subprogram by selecting name of the subprogram from list box and clicking open button. this is my code: packet_list=cellstr(get(handles.listbox1,'String')); temp1=packet_list{get(handles.listbox1, 'Value')}; figure(temp1); please save me from this deep swamp :) Have a nice day.
댓글 수: 0
답변 (1개)
Jan
2012년 5월 22일
I cannot guess, what "opening a subprogram" means. What is the contents of the list stored in listbox1? What do you assume as result of "figure(temp1)" and what do you get? Perhaps you want "feval(temp1)"?
댓글 수: 2
Jan
2012년 5월 22일
If you "accept" an answer, which solves your problem, other readers wanting to help can skip this thread and save their time.
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!