Set step time in Simulink
显示 更早的评论
I have created a Simulink model with only a constant value (see screenshot).
Then I execute it by running the following script:
clear
set_param DummyTest FixedStep 1
sim DummyTest
disp(y.Time)
Turns out the step size of the simulation is 0.2 s, not 1 second. What do I do wrong?
采纳的回答
更多回答(1 个)
ES
2018-5-29
You have set the solver?
set_param('Solver', 'FixedStepDiscrete');
类别
在 帮助中心 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!