Page 1 of 1

Too many input arguments.

Posted: Fri Dec 16, 2016 9:42 pm
by matlab1
In MATLAB when you see this error, It means you call a function with many inputs.

for example :


You have the following function :

y = myfun(a,b)
y = a + b;



When you call this function :

>> myfun (3,5,7)

This error happens.


But if you type :

>> myfun(6,7)

13

Re: Too many input arguments.

Posted: Sat Dec 26, 2020 6:52 pm
by matlab1
In MATLAB when you see this error, It means you call a function with many inputs.

for example :


You have the following function :

y = myfun(a,b)
y = a + b;



When you call this function :

>> myfun (3,5,7)

This error happens.


But if you type :

>> myfun(6,7)

13
Top