필터 지우기
필터 지우기

help using menu function

조회 수: 1 (최근 30일)
oselu
oselu 2014년 9월 9일
답변: Image Analyst 2014년 9월 9일
Good day
I am using the menu function to ask the user to which calculation would they like to get displayed.
I have done that using a switch statement.
Now, I would like to then ask the user if they would like to see the other calculations and make them choose which.
my problem is that I want to use the menu function again, but this time I want my options to be the calculations which have not already been displayed.
How do I go about doing that or an alternative route to take
Thank you

답변 (1개)

Image Analyst
Image Analyst 2014년 9월 9일
Just call menu() again with different strings - only the ones that apply now. What's the problem?
buttonNumber = menu('Pick one', 'Do thing #1', 'Do thing #2', 'Do thing #3');
% Then do the thing they chose...
% Then let them pick the next thing to do.
buttonNumber = menu('Pick the next option', 'a', 'b', 'c');

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by