Simulation Error: 'Returning workspace outputs is supported with only single return argument'

4 次查看(过去 30 天)
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.

采纳的回答

Walter Roberson
Walter Roberson 2017-6-27
sim() can only return one output. That one output will be an object with multiple properties.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Manual Performance Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by