MATLAB: Simulink is very slow why

slow simulink

when a simulink circuit run matlab is very slow

Best Answer

From this perspective, I would say the possible reasons as follows:
-Small step sizes or sample times. It is important to keep the step size small enough to capture important events during the simulation. Conversely, a step size that is too small will produce more output points than necessary and slow down the simulation.
-The maximum step size is too small.
-You may have asked for too much accuracy. The default relative tolerance (0.1% accuracy) is usually sufficient.
- Algebraic loop!
- The problem may be your solver type.