I want to get Y = 906*1 but I got 2880
2 ビュー (過去 30 日間)
古いコメントを表示
n1a=960;
n1b=960;
n2=960;
load Normal
load fault1
load fault3
X=[Normal fault1 fault3];
Y=[ones(n1a+n1b,1);2*ones(n2,1)];
I got this error
Matrix dimensions must agree.
Error in LFDA (line 48)
Xc=X(:,Y==c);
line 48 is :
for c=unique(Y')
Xc=X(:,Y==c);
nc=size(Xc,2);
4 件のコメント
madhan ravi
2018 年 11 月 15 日
編集済み: madhan ravi
2018 年 11 月 15 日
your most welcome to post your solution as an answer in answer section so that people who have similar problem will find it helpful
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!