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)

Products

Release

R2026a

Asked:

about 13 hours ago

Moved:

about 8 hours ago

Community Treasure Hunt

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

Start Hunting!