One-Step a Simulink Simulation from the MATLAB command line

조회 수: 6 (최근 30일)
Brad
Brad 2012년 5월 14일
답변: krishna teja 2020년 3월 28일
Hi,
I'm trying to step through a simulink model by just executing time 0 then 1, then 2, etc. from the command line. Rather than using the debugger, I'd like to execute the entire model each time, assuming its fixed-step.
Something like this would be preffered: simulate('model_name', onestep);
Is there any way to do this in simulink/MATLAB?

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2012년 5월 14일
Yes, you should be able to use the model command to do this.
Note that the word model needs to be replaced with the actual name of the model.

krishna teja
krishna teja 2020년 3월 28일

카테고리

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