Ask for parameters when running simulation

Hi, Is it possible to include a command so that everytime I simulate my model, It asks for some parameters to enter by keyboard and then simulates? For example if want to change certain parameters every time I simulate, what is the best option to do? Thanks for any help.....:)

 採用された回答

Image Analyst
Image Analyst 2013 年 12 月 5 日

0 投票

Did you see the example in the help for inputdlg()? I think that might be exactly what you're looking for.

1 件のコメント

Anuj
Anuj 2013 年 12 月 5 日
Thanks, I think it's gonna work

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

その他の回答 (1 件)

Mahnaz Pariyan
Mahnaz Pariyan 2013 年 12 月 5 日

1 投票

Using command "input" will ask the user to enter the value by keyboard, for example:
m1 = input ('enter m1: ');
and write the other parts of your program based on this variable (m1).

1 件のコメント

Anuj
Anuj 2013 年 12 月 5 日
Thanks, It was good :)

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

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

質問済み:

2013 年 12 月 4 日

コメント済み:

2013 年 12 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by