Not enough input arguments

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

Not enough input arguments

Post by matlab1 »

tg
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: Not enough input arguments

Post by matlab1 »

This error is very clear,

When you call a function in MATLAB, but you do not enter the required number of inputs, you will see this error message.

For example :

function n = myfun(a,b)
n = a-b+50



if you call the top function as follows

myfun(77)

You will face this error.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests