필터 지우기
필터 지우기

Matlab Interfaces. Access Simulation time.

조회 수: 3 (최근 30일)
Sindia Casado
Sindia Casado 2012년 9월 4일
Hello all,
I am working with Matlab for long. Now i am starting to work with GUIDE in order to do different programs to have different interfaces in Matlab. One question that I cannot solve is the following one. How can I access the Simulation time (Start and Stop time) through the interface? What i want to do is introduce (in a screen that I previously do in Matlab) the Start Time and the Stop time, and then click on a button (For example continue Button) and then the model starts simulating. Is there any command or programming that permit accessing the simulation time by interface?
Thank you so much in advanced Sindia

채택된 답변

Sindia Casado
Sindia Casado 2012년 9월 5일
Thank you so much for your help!
  댓글 수: 1
TAB
TAB 2012년 9월 5일
편집: TAB 2012년 9월 5일
@Sindia: Please accept the answer if it helped.

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

추가 답변 (1개)

TAB
TAB 2012년 9월 4일
편집: TAB 2012년 9월 4일
% To read values from the model
MdlStartTime = get_param('YourModelName','StartTime');
MdlStopTime = get_param(YourModelName,'StopTime');
% To change values in the model
set_param(YourModelName,'StartTime','NewValue');
set_param(YourModelName,'StopTime','NewValue');

카테고리

Help CenterFile Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by