フィルターのクリア

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 件のコメント
KSSV
KSSV 2018 年 6 月 27 日
What is size of X(:,:)?

サインインしてコメントする。

回答 (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.
KSSV
KSSV 2018 年 6 月 27 日
X = rand(150,5) ;
BB = A(:,5) ;
I = A(:,1:4) ;

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by