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

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.

Antworten (1)

Mischa Kim
Mischa Kim am 10 Feb. 2014
Bearbeitet: Mischa Kim am 10 Feb. 2014

0 Stimmen

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 Kommentare

My simulation is going on all the time. Simout block is creating variable after the button "Stop Simulation" is pushed. Same with "To File". All hope in "Matlab Function" block.
Mischa Kim
Mischa Kim am 10 Feb. 2014
Bearbeitet: Mischa Kim am 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Gefragt:

am 10 Feb. 2014

Kommentiert:

am 10 Feb. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by