フィルターのクリア

User defined function for three scripts

1 回表示 (過去 30 日間)
matlabgod
matlabgod 2018 年 10 月 22 日
コメント済み: matlabgod 2018 年 10 月 22 日
So I have three scripts that each create a different wave plot using the same inputs. How can I make a program that asks the user for the three inputs first, then asks which type of wave then displays the plot?

採用された回答

Stephan
Stephan 2018 年 10 月 22 日
Hi,
read about input and case/switch/otherwise. Then save your three different functions with the corresponding name in your Matlab Path and call them in dependence of the user choice (by input) with the arguments given by the user. - Thats it.
Best regards
Stephan
  1 件のコメント
matlabgod
matlabgod 2018 年 10 月 22 日
thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by