Receiving "Too many return arguments are specified. Specify only one."

4 次查看(过去 30 天)
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 个评论
MIGUEL ALEJANDRO
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 个)

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by