sim command in Matlab and ToWorkspace in SIMULINK dont work togheter?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Benjamin Pommer
am 5 Sep. 2022
Beantwortet: Paul
am 5 Sep. 2022
Hi matlab commuinity,
I want to run a simulation through the command sim('...') in a matlab file and extract the input and output data through a ToWorkspace block. It seems like that that does not work out. Why is that?
Best regards
0 Kommentare
Akzeptierte Antwort
Paul
am 5 Sep. 2022
Hi Benjamin,
ouputdata = sim('mymodel');
All of the ToWorkspace blocks (and other stuff as well) will be in outputdata, which can be accesses via dot indexing among other options. Start with the doc page for sim; it will tell you exactly the type of object that output data instantiates, and the doc page for that object can be further explored.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!