Error while trying to access a function
1 次查看(过去 30 天)
显示 更早的评论
I have a function in matlab. When I try to run the file I get an error which says "Input Argument undefined". Please anybody let me know what can be done with this.
Thanks in advance Smith.
0 个评论
采纳的回答
Titus Edelhofer
2011-7-4
Hi,
this error comes if you call a function without the input argument. Say your function looks like
function y = myfun(x)
the function expects to be called like this, e.g.
y = myfun(42);
If you just call
y = myfun
you will get this error. Does this help?
Titus
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!