Too many input arguments.

Basic question about MATLAB programming
Post Reply
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Too many input arguments.

Post 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
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: Too many input arguments.

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests