Simulation Error: 'Returning workspace outputs is supported with only single return argument'
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Imisi Jo
am 27 Jun. 2017
Beantwortet: Walter Roberson
am 27 Jun. 2017
Hi all,
I want to get the simulation time and the output data (ie data at the output ports) of my Simulink model. My code is:
[time,data]=sim('Modelname',StopTime);
I got this from the Parameter Estimation example with the Aircraft. However, I get the error 'Returning workspace outputs is supported with only single return argument'. Can anyone guide me in resolving this error, as I have no idea what to do.
Thank you.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 27 Jun. 2017
sim() can only return one output. That one output will be an object with multiple properties.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Manual Performance Optimization 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!