Simulink: return values of simulation
显示 更早的评论
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
采纳的回答
更多回答(1 个)
ChristianW
2013-3-1
0 个投票
Check out the Sinks-Library. There are Display-, To Workspace- and To File Blocks.
2 个评论
Andreas Goser
2013-3-1
In addtion there is the out block and you can set the scope accordingly.
Timur
2013-3-4
类别
在 帮助中心 和 File Exchange 中查找有关 Configure and View Diagnostics 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!