フィルターのクリア

binary mask

1 回表示 (過去 30 日間)
nomad nomad
nomad nomad 2011 年 4 月 30 日
回答済み: Voss 2021 年 12 月 27 日
Good evening,
To obtain an optimal discrimination capability between two peaks from a correlation operation between a stage and a target, I apply a bit mask that blocks certain frequencies,
I wonder because I have no idea, how to mask and on what basis?
Thank you in advance
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 4 月 30 日
Please clarify the difference between this question and your earlier one, http://www.mathworks.com/matlabcentral/answers/6479-classification-of-a-matrix-and-binary-mask

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

回答 (1 件)

Voss
Voss 2021 年 12 月 27 日
A = magic(5)
A = 5×5
17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9
mask = logical(1-eye(5))
mask = 5×5 logical array
0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 0
A(~mask) = NaN
A = 5×5
NaN 24 1 8 15 23 NaN 7 14 16 4 6 NaN 20 22 10 12 19 NaN 3 11 18 25 2 NaN

Community Treasure Hunt

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

Start Hunting!

Translated by