フィルターのクリア

Arrays have incompatible sizes for this operation. Error in test (line 35) G = F .* conj(T_h1);

1 回表示 (過去 30 日間)
Tosin
Tosin 2023 年 4 月 17 日
コメント済み: Walter Roberson 2023 年 4 月 17 日
I'm not sure how to fix that issue

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 4 月 17 日
  • you could arrange so that F and T_h1 either have the same size or else have sizes that are suitable for implicit expansion
  • you could pad F or T_h1 to be the same size as the other before doing the calculation
  • you could give up on that calculation and do something else
Question: is it possible that the number of rows of F is the same as the number of columns of T_h1, or the number of columns of F is the same as the number of rows of T_h1, but the arrays are not square and not equal size? If so then perhaps what is wanted is
G = F .* T_h1';
which is the conjugate transpose operator applied to T_h1, not the conjugate operator.
  1 件のコメント
Walter Roberson
Walter Roberson 2023 年 4 月 17 日
I wonder if the image being read in is an RGB image but the code expects it to be grayscale ?

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by