Set step time in Simulink
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (1)
ES
le 29 Mai 2018
You have set the solver?
set_param('Solver', 'FixedStepDiscrete');
Catégories
En savoir plus sur Programmatic Model Editing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!