Not enough input argument error
3 次查看(过去 30 天)
显示 更早的评论
Hi i have a matlab code which i have attached with my data. When i run the code it gives error in line 54 stating not enough input argument. Can anyone please check the code for me cause i am new to matlab and advice me accordingly. Many Thanks
7 个评论
采纳的回答
Walter Roberson
2018-9-2
When you run a function from the editor then no parameters are provided for it, and most attempts to reference the variables will give exactly the error message that you see.
When you run a function, MATLAB will not look in the calling environment to try to find variables with the same name as the parameters. You have to pass the values at the time the function is invoked.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!