In Simulink, Matlab Function, how to save a variable at the end of the simulation?
5 views (last 30 days)
Show older comments
When the Simulation is stopped/finished, I want to have access to matrix M.
0 Comments
Accepted Answer
Kaustubha Govind
on 23 Apr 2013
I think the only way to have access to internal data of a MATLAB Function block is to create an output to the function and assign the output to the value of the persistent variable.
2 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Functions 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!