Filter löschen
Filter löschen

Merging a mask into a larger matrix

2 Ansichten (letzte 30 Tage)
Surya Gnyawali
Surya Gnyawali am 27 Okt. 2011
I have a 2D binary mask of size 200x200. I want to merge this mask into a matrix of size 775x640.
  1 Kommentar
Doug Hull
Doug Hull am 27 Okt. 2011
What does it mean to merge these masks?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 27 Okt. 2011
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;

Community Treasure Hunt

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

Start Hunting!

Translated by