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?

 채택된 답변

doc sim
You can sim command to run your model. To run multiple time, use command in loop or call it multiple times.

댓글 수: 2

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
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기

제품

질문:

2015년 4월 3일

댓글:

TAB
2015년 4월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by