필터 지우기
필터 지우기

Ask for parameters when running simulation

조회 수: 1 (최근 30일)
Anuj
Anuj 2013년 12월 4일
댓글: Anuj 2013년 12월 5일
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일
Did you see the example in the help for inputdlg()? I think that might be exactly what you're looking for.

추가 답변 (1개)

Mahnaz Pariyan
Mahnaz Pariyan 2013년 12월 5일
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).

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by