Simulating a modell with x-values each second

조회 수: 1 (최근 30일)
Orcun Kocak
Orcun Kocak 2022년 9월 4일
답변: Ankit 2022년 9월 5일
I need to simulate a simulink modell with 100-values each second for 20 seconds. How can i do this ?
should be something like this:
%
tend = 20;
dt = 1e-1;
sim('ZMSD_Modell_SS22.slx', (0:dt:tend))
%

답변 (1개)

Ankit
Ankit 2022년 9월 5일
Refer to sim Help Page for more info about different way and properties you can set (write help sim in your MATLAB command window to know more)
sim('ZMSD_Modell_SS22.slx','StartTime','0','StopTime','20','FixedStep','0.01');

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by