Getting error "Too many input arguments"
1 次查看(过去 30 天)
显示 更早的评论
Hi, I keep getting this error, even when I reduced myfunc to take in just one input as myfunc(a) and doing nothing in the function besides just passing it out as sSql = a.
methods function sSql = myfunc(a) sSql = a; end end
0 个评论
回答(1 个)
Ashish Sheikh
2016-3-3
Are u trying to define that inside a class. If yes , how are you using its object,,?
3 个评论
Guillaume
2016-3-3
Well, if you're not using the object in the function, why is it a method of the object? At the very least, it should be a static method.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!