Merging a mask into a larger matrix
2 次查看(过去 30 天)
显示 更早的评论
I have a 2D binary mask of size 200x200. I want to merge this mask into a matrix of size 775x640.
回答(1 个)
Walter Roberson
2011-10-27
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;
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!