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

조회 수: 2 (최근 30일)
div
div 2018년 6월 27일
편집: div 2018년 6월 28일
Please help me. Why i am getting this error.
if(X(i,5)==1)
[BB,I]=X(:,:);
  댓글 수: 4

댓글을 달려면 로그인하십시오.

답변 (2개)

Sayyed Ahmad
Sayyed Ahmad 2018년 6월 27일
x={1, 2,3}
[a b c]=x{1:3}

KSSV
KSSV 2018년 6월 27일
X = rand(10,5) ;
BB = A(:,1:3) ;
I = A(:,4:end) ;
  댓글 수: 2
div
div 2018년 6월 27일
편집: div 2018년 6월 28일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by