Question
My Simulink model simulation is running very slow or failing due to solver step size. How do I adjust Max Step Size and Fixed Step Size?
Related Questions
Expert Answer
John Williams
PhD Expert
Answered Aug 8, 2026
To configure solver step size settings in Simulink:
- Press
Ctrl + Eto open Model Configuration Parameters. - Select Solver from the left menu panel.
- For Variable-step solvers (e.g.,
ode45,ode15s): Set Max step size fromautoto1e-3or1e-4for higher accuracy. - For Fixed-step solvers (e.g.,
ode3,ode4): Set Fixed-step size to your required sampling period (e.g.,0.001seconds).
Have a different question? Ask here