• Register
0 votes
331 views

Problem :

I am new to matlab and nntool. Currently I want to implement the neural network with the use of matlab using nntool.

I am facing below error message. I am unable to understand the error message.

**??? Insufficient number of outputs from right hand side of equal sign to satisfy assignment. Error in ==> nntool at 694 [errmsg,errid] = me.message;
com.mathworks.jmi.MatlabException: Insufficient number of outputs from right hand side of equal sign to satisfy assignment.**

How can I fix the above error message?

8 4 2
2,300 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I have gone through your problem. I have solution for your problem.

You are facing this issue because it may be the case that your output variables name and the method name both are the same.

Have a look at below code snippet as an example.

[stft, t, f]= stft(x,wlen,nfft);

In above snippet the method output variable in the left hand side is the “stft” and in the right hand side the method name is the “stft” also.

It can also happen that in the matlab program the variable name you have created is already the inbuilt method name of the MATLAB.

You should also pay attention to the input and output matrix columns of your program they might not be the same

so please check this type of mistakes in your code.

5 2 1
4,980 points

Related questions

0 votes
1 answer 3 views
3 views
Problem: Trying to write a loop that checks if one norm is bigger than the other. However, I'm getting an error associated with P = N2: Error: The expression to the left of the equals sign is not a valid target for an assignment.
asked Apr 24 ummeshani 8.8k points
0 votes
1 answer 8 views
8 views
problem: need your answer to help me?the expression to the left of the equals sign is not a valid target for an assignment Matlab
asked Mar 17 amnafahad 500 points
0 votes
1 answer 107 views
107 views
Problem : Looking for solution on following issue error: the expression to the left of the equals sign is not a valid target for an assignment
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 32 views
32 views
How would I solve this? Thanks!
asked Jan 22 TeamScript 13.5k points
0 votes
1 answer 37 views
37 views
How would I solve this?
asked Dec 28, 2020 TeamScript 13.5k points
0 votes
1 answer 27 views
27 views
Problem: I tried to check the type of context whether it is an instance of Context, which is in another file, but node js throws TypeError: Right-hand side of 'instanceof' is not callable.
asked Mar 27 ummesalma 29.2k points
0 votes
1 answer 20 views
20 views
uncaught referenceerror: invalid left-hand side in assignment
asked Feb 16 ArifulIslam 7.5k points
0 votes
1 answer 12 views
12 views
Problem: I'm sure I'm doing something silly here: var addhtml = "<div id="leftbio" class="left-float">" += "<div id="bioname">e["screen_name]</div>" += "<div id="biophoto"><img src="/images/e["profile_image_url"]"/></div>" += "<div id=" ... += "</div>"; // invalid assignment left-hand side console.log(addhtml); And Netbeans is telling me that invalid assignment left-hand sideerror. It's wrong
asked Oct 29, 2020 sasha 16.2k points
0 votes
1 answer 3 views
3 views
Problem: So far, I don't get any ideas to understand what this error means. If I have, I think I could solve this problem in my Matlab programming. If anyone could help me to explain what's going on and give some examples?
asked Apr 28 Jack20 5.1k points
1 vote
1 answer 73 views
73 views
Problem: For the following code : E = [5,200]; Selected edge values X = imread('LENNA128.bmp'); N = length(X); Y = false(N+2); for k = 1:numel(E); Y(2:end-1,2:end-1) = X==E(k); Z = Y(1:end-2,2:end-1) | Y(3:end,2:end-1) | Y(2:end-1,3:end) ... )/2); end I get the error message: In an assignment A(:) = B, the number of elements in A and B must be the same Can anyone help me out to solve this problem.
asked Apr 9, 2020 LizzyM 6.1k points