In Simulink, how do I set the time step for simulations? I want it to be 0.1 seconds long. I've got it set to run 20 seconds.
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I need to know how (and where) to set the time step for Simulink simulations. I've got it set to 20 seconds. I want to set it to use a 0.1 second time step, so there will be 20 points produced per variable. I need to know where to look for "time step". I've got the time span set already.
Antworten (1)
Jayanti
am 10 Okt. 2024
To set time step for Simulink simulation you need to make changes to solver settings. Kindly follow the below steps to achieve this:-
- Right click on your Simulink model -> Go to Model Configuration Parameters-> Solver category on left pane
- Under solver selection set type as Fixed-step. Now in solver details under fixed-step size enter 0.1 seconds.
Hope this helps.
2 Kommentare
Siehe auch
Kategorien
Mehr zu Event Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!