Simulation Error: 'Returning workspace outputs is supported with only single return argument'
14 ビュー (過去 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.
0 件のコメント
採用された回答
Walter Roberson
2017 年 6 月 27 日
sim() can only return one output. That one output will be an object with multiple properties.
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!