Receiving "Too many return arguments are specified. Specify only one."
이전 댓글 표시
I am trying to run a very simple code that gives me whatever values. I am new to MATLAB and I am just practicing. I have the following simulink diagram

and my .m is the following
options = simset;
options = simset('MaxStep',1,'MinStep',1e-5,'AbsTol',1e-3);
tf = 10;
[t,xv] = sim('vdpol',tf,options);
Once I can get t and xv I can perform plots but I seem to not get past that 7th line
Error using vdpolmat (line 7)
Too many return arguments are specified. Specify only one.
Like I said I am learning here and I know I am missing something dumb.
댓글 수: 4
David Sheets
2019년 10월 20일
편집: David Sheets
2019년 10월 20일
Mohammad Khan
2019년 12월 5일
A big Thank you!
Jan FitzGibbon
2020년 3월 5일
Thank you so much, saved me the night before my deadline
MIGUEL ALEJANDRO
2025년 2월 25일
6 years later but THANK YOU!! I was getting that same mind breaking mistake and couldnt find how to fix it, you saved me :)
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!