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

2 visualizaciones (últimos 30 días)
Please help me. Why i am getting this error.
if(X(i,5)==1)
[BB,I]=X(:,:);
  4 comentarios

Iniciar sesión para comentar.

Respuestas (2)

Sayyed Ahmad
Sayyed Ahmad el 27 de Jun. de 2018
x={1, 2,3}
[a b c]=x{1:3}

KSSV
KSSV el 27 de Jun. de 2018
X = rand(10,5) ;
BB = A(:,1:3) ;
I = A(:,4:end) ;
  2 comentarios
div
div el 27 de Jun. de 2018
Editada: div el 28 de Jun. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by