필터 지우기
필터 지우기

how to run a MATLAB model through GUI

조회 수: 3 (최근 30일)
Milan
Milan 2013년 10월 22일
댓글: Phani kumar KSV 2020년 4월 23일
i need to run a MATLAB model from GUI ,i had used sim command but i cannot see the simulation time , i need to see the simulation timing. I used following command "set_param(gcs,'SimulationCommand','start')"but when i run from GUI model run but i cannot see the scope waveform.can u suggest me how can i run a model from GUI and can see simulation percentage or timing

답변 (1개)

Zack Peters
Zack Peters 2013년 10월 25일
Hi Milan,
If you save a model with the scopes open and then close the model, then the next time that you open that model, the scopes will open as well.
When you start the model via set_param you will get a full view of the model's simulation time at the right side of the model's status bar as well as continuous updating of the scopes.
You can see from executing the following code in the command window (try to simplify by taking the GUI out of the equation):
open_system('vdp')
set_param('vdp','SimulationCommand','start')
~Zack

카테고리

Help CenterFile Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by