Insufficient number of outputs from right hand side of equal sign to satisfy assignment

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

Insufficient number of outputs from right hand side of equal sign to satisfy assignment

Post by matlab1 »

Insufficient number of outputs from right hand side of equal sign to satisfy assignment
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: Insufficient number of outputs from right hand side of equal sign to satisfy assignment

Post by matlab1 »

This error can happen on many occasions. For example :
Suppose we have the following function :
[a,c,d]= myFun(x,y)


This function has three output that the user must specify when calling this function.

now, if the user use the following command by mistake,

[a,k]=myFun(6,11)

MATLAB will produce an error which means the number of outputs from the right-hand side of the equal sign does not satisfy the assignment.
Post Reply

Return to “Containers data type”

Who is online

Users browsing this forum: No registered users and 0 guests