• Register
0 votes

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 67 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 16 views
How would I solve this?
asked Dec 28, 2020 TeamScript 9.2k points
1 vote
1 answer 47 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
0 votes
1 answer 11 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 5.3k points
1 vote
1 answer 1K views
Problem : Currently I am learning Pandas. I want to do inner join DataFrame1 to DataFrame2. But I am facing below error. &ldquo;Len(left_on) must equal the number of levels in the index of "right"&rdquo; Please find below my join statement for your reference. merged = DataFrame1.join(DataFrame2, on=['Code','Date']) Please let me know why am I facing above error?
asked Mar 31, 2020 morrisBson 3.2k points
0 votes
1 answer 6 views
Problem: I want to find number of rows and column in MATLAB. How do I do that?
asked Oct 22, 2020 Ahsan 1.8k points
0 votes
1 answer 17 views
Problem: I have a picture and I want to remove its background in Matlab. It is a machine vision task.
asked Oct 10, 2020 Ahsan 1.8k points
0 votes
1 answer 8 views
0 votes
1 answer 40 views
Problem: How to find inverse of a 3x3 matrix in Matlab?
asked Oct 10, 2020 Ahsan 1.8k points
0 votes
1 answer 3 views