Getting error "Too many input arguments"
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Ashish Sheikh
on 3 Mar 2016
Are u trying to define that inside a class. If yes , how are you using its object,,?
3 Comments
Guillaume
on 3 Mar 2016
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.
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!