Simulink: return values of simulation
Show older comments
Hi,
My question is how I can take out (to Matlab) values from simulink simulations at specific time step?
In my example I have simple spring model. The scheme is below:

After I run the simulation with specific parameters, I get the following result.

How can I get value of position y=0.2 at time step = 80 from simulink to matlab?
Basically, I need to get final simulation results, after system equilibrates.
Thank you
Accepted Answer
More Answers (1)
ChristianW
on 1 Mar 2013
0 votes
Check out the Sinks-Library. There are Display-, To Workspace- and To File Blocks.
2 Comments
Andreas Goser
on 1 Mar 2013
In addtion there is the out block and you can set the scope accordingly.
Timur
on 4 Mar 2013
Categories
Find more on Configure and View Diagnostics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!