• Register
0 votes
142 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

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 43 views
43 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
1 vote
1 answer 34 views
34 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 LizzyM 6.1k points
1 vote
1 answer 624 views
624 views
Problem : Currently I am learning Pandas. I want to do inner join DataFrame1 to DataFrame2. But I am facing below error. “Len(left_on) must equal the number of levels in the index of "right"” 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 morrisBson 3.2k points
0 votes
1 answer 2 views
2 views
Problem: I want to find number of rows and column in MATLAB. How do I do that?
asked 1 day ago Ahsan 1.8k points
0 votes
1 answer 5 views
5 views
Problem: I have a picture and I want to remove its background in Matlab. It is a machine vision task.
asked Oct 10 Ahsan 1.8k points