MATLAB: I have a problem with simulink when run simulation it’s stop in 2%
simulationsimulink
Best Answer
Go to Configuration Parameters->Solver section and choose Fixed Step solver and its type as ode5. Then, set the sample time as 0.001. Then run the simulation again, tell me the results.
Your solver should be fixed size, and the fixed step size can be set at simulation->Configuration Parameters-> Fixed-step size (fundamental sample time)
Feed the velocity signal into aCompare to Zero block. The output of the block will change from 0 to 1 when the velocity becomes less or equal to zero. You can then connect the output of that block to theStop Simulation block.
Best Answer