フィルターのクリア

error + matrix dimension must agree

1 回表示 (過去 30 日間)
Nik
Nik 2014 年 3 月 16 日
編集済み: Nik 2014 年 3 月 19 日
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);

採用された回答

Mischa Kim
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 件のコメント
Mischa Kim
Mischa Kim 2014 年 3 月 18 日
What are the sizes of X and T? Is T a scalar?
Nik
Nik 2014 年 3 月 19 日
編集済み: Nik 2014 年 3 月 19 日
Sir Mischa, T is:
M=size(pic,1)^2;
T=sig*sqrt(2*log(M));
while X is the wavelet coefficient value. TQVM.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSmoothing and Denoising についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by