Effacer les filtres
Effacer les filtres

Ask for parameters when running simulation

1 vue (au cours des 30 derniers jours)
Anuj
Anuj le 4 Déc 2013
Commenté : Anuj le 5 Déc 2013
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.....:)

Réponse acceptée

Image Analyst
Image Analyst le 5 Déc 2013
Did you see the example in the help for inputdlg()? I think that might be exactly what you're looking for.
  1 commentaire
Anuj
Anuj le 5 Déc 2013
Thanks, I think it's gonna work

Connectez-vous pour commenter.

Plus de réponses (1)

Mahnaz Pariyan
Mahnaz Pariyan le 5 Déc 2013
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 commentaire
Anuj
Anuj le 5 Déc 2013
Thanks, It was good :)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by