When you call the sym function you must call it with at least one input argument. The Syntax section on that documentation page does not list a zero input calling syntax. Based on the error message you are calling it with no input arguments.
How do i fix that code
19 次查看(过去 30 天)
显示 更早的评论
switch nargin
case 0
error(message('MATLAB:minrhs'));
case 1
S.s = tomupad(x);
Error using sym (line 212)
Not enough input arguments
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Function Creation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!