Simulation Error: 'Returning workspace outputs is supported with only single return argument'
조회 수: 5 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!