error + matrix dimension must agree
1 回表示 (過去 30 日間)
古いコメントを表示
I got error -- Error using + Matrix dimensions must agree.
on this code. Please help me
a=sign(X(ind1)).*(abs(X(ind1))-T);
b=abs(X);
c=plus(a,b);
0 件のコメント
採用された回答
Mischa Kim
2014 年 3 月 16 日
編集済み: Mischa Kim
2014 年 3 月 16 日
Nik, X and T need to be same-sized vectors unless T is a scalar.
What are you trying to do in
a = sign(X(ind1)).*(abs(X(ind1))-T);
especially w.r.t. T?
3 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!