MATLAB Answers

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

16 views (last 30 days)
div
div on 27 Jun 2018
Edited: div on 28 Jun 2018
Please help me. Why i am getting this error.
if(X(i,5)==1)
[BB,I]=X(:,:);

  4 Comments

Show 1 older comment

Sign in to comment.

Answers (2)


KSSV
KSSV on 27 Jun 2018
X = rand(10,5) ;
BB = A(:,1:3) ;
I = A(:,4:end) ;

  2 Comments

div
div on 27 Jun 2018
Sir, I want to assign the value of X's fifth column to B with their correspondence index to I so thats when i write [B,I] and i m getting error in this line.

Sign in to comment.

Tags


Translated by