How do I start working on whatever choice the user selects. If-statement? or other referencing?

MATLAB!!!
I suppose I would use an if-statement? But MATLAB is urging me to use strcmp, though all I want to do is start writing a code with respect to a choice that the user selects given the options provided in the menu dialogue box below. How would I begin??
choice = menu('Please choose a topic' ,'Physics Calculator ', 'Motor Analysis Calculator ', 'Material Analysis Calculator ', 'Unit Conversions');

回答 (1 件)

Jonathan
Jonathan 2013 年 11 月 5 日
MATLAB!!!
I suppose I would use an if-statement? But MATLAB is urging me to use strcmp, though all I want to do is start writing a code with respect to a choice that the user selects given the options provided in the menu dialogue box below. How would I begin??
choice = menu('Please choose a topic' ,'Physics Calculator ', 'Motor Analysis Calculator ', 'Material Analysis Calculator ', 'Unit Conversions');

この質問は閉じられています。

タグ

タグが未入力です。

質問済み:

2013 年 11 月 5 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by