How to resolve step size?

https://www.youtube.com/watch?v=jQOOCD-EqqY&t=13sI was trying to make this same project on MATLAB. But I am getting errors.
An error occurred during simulation and the simulation was stopped
Caused by:
  • Derivative of state 'DC_Motor_SpeedControl.DC_Motor_Subsystem.DC_Motor.i_L' in block 'DC_Motor_SpeedControl/DC Motor Subsystem/DC Motor' at time 1.96 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)

Answers (1)

Torsten
Torsten on 24 Jul 2026 at 14:01
Moved: Torsten on 24 Jul 2026 at 14:01

Products

Release

R2026a

Asked:

on 24 Jul 2026 at 8:33

Moved:

on 24 Jul 2026 at 14:01

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!