Merging a mask into a larger matrix

I have a 2D binary mask of size 200x200. I want to merge this mask into a matrix of size 775x640.

1 件のコメント

Doug Hull
Doug Hull 2011 年 10 月 27 日
What does it mean to merge these masks?

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

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 10 月 27 日

0 投票

Matrix(J:J+199,K:K+199) = Mask;
Or possibly you mean something like
Matrix(J:J+199,K:K+199) = Matrix(J:J+199,K:K+199) .* Mask;

タグ

質問済み:

2011 年 10 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by