From "Matlab Function" block in Simulink to Workspace in Matlab

10 views (last 30 days)
Hey, is there any function to move variables from that block to Workspace in Matlab? I don't want to use "to Workspace" block. I need to do this in this "Matlab Function" block.

Answers (1)

Mischa Kim
Mischa Kim on 10 Feb 2014
Edited: Mischa Kim on 10 Feb 2014
Artur, are you referring to the simout block? That is typically the way to go. Other than that there are other options you can choose from to export data from Simulink.
  3 Comments
Artur
Artur on 10 Feb 2014
in some way I have access to data I need. But I must extract it out of Simulink, out of Matlab. All this in real-time. I was thinking about "Matlab Function" block because in it I can save variable with "Save" function. But my vars are not in workspace so I cannot save them.
If I only could extract them to workspace with real-time refreshing all would be great.

Sign in to comment.

Categories

Find more on Interactive Model Editing in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!