How to use one matlab model for different variable in it using matlab script file or how can a m-file progrmming can use a already build model in simulink to run it multiple times?

5 visualizaciones (últimos 30 días)
how to access simulink model using m-file function.

Respuesta aceptada

TAB
TAB el 6 de Abr. de 2015
doc sim
You can sim command to run your model. To run multiple time, use command in loop or call it multiple times.
  2 comentarios
prakhar
prakhar el 6 de Abr. de 2015
Editada: prakhar el 6 de Abr. de 2015
thank you very much. It is really helpful. But can u also tell me, suppose in model i am using X_Y graph and in m-file i am running model many a times and getting this x-y graph, now how to hold the previous graph in x-y graph itself or in figure window and compare the results of each simulations
TAB
TAB el 7 de Abr. de 2015
X_Y graph window will display the result of latest simulation.Results from earlier simulations will disappear. You can save the simulation results from each simulation in base workspace and compare them as you want.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by