File Exchange

image thumbnail

Stop a Simulation in Steady State using STOP block

version 1.0.0.1 (8.76 KB) by

Use STOP block to stop a simulation in steady state condition

4 Downloads

Updated

View License

This example was inspired by a MATLAB Newsgroup thread here:
http://www.mathworks.co.jp/matlabcentral/newsreader/view_thread/271266

Using the STOP block and a delay block, you can compute the error difference between successive values of a variable of interest. When the error in nth decimal place falls below the threshold, you can use the Compare to Constant block to activate the STOP block.

The STOP block can be used in a powerful manner: For example, by setting the time of simulation to infinite, you can control how long the simulation runs depending on dynamics of the computation within the model.

Comments and Ratings (2)

Simulink Dude

Simulink Dude (view profile)

You can now follow me on Twitter:

http://twitter.com/simulinkdude

Andreas

Really nice.

Updates

1.0.0.1

Updated license

MATLAB Release
MATLAB 7.9 (R2009b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video