Moving Simulink Data Into the workspace
Ältere Kommentare anzeigen
I am Running a Simulink Model From my GUI and i would like data from to the workspace bloacks to end up in the Matlab Workspace so i can anaylse it afterwards. The data will aperar their if i run it manually but running it through the GUI it does not appear at all.
What comand do i need to use to do this ? And which part of my GUI should i place it in .
1 Kommentar
Paul
am 29 Mär. 2012
Akzeptierte Antwort
Weitere Antworten (1)
TAB
am 30 Mär. 2012
Variables from 'To Workspace' block are saved in calling-workspace. Your way of saving them to 'base-Workspace is correct. Just make correction in assignin() call. Assign the variable values, not string.
assignin('base','helicopter_target_b', helicopter_target);
assignin('base','Ctrlout_b', Ctrlout);
assignin('base','Heliout_b', Heliout);
1 Kommentar
Paul
am 10 Apr. 2012
Kategorien
Mehr zu Simulink Functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!