To select the indices of logical "1" in first 2D matrix, and then replace those corresponding indices in second 2D matrix with logical "0"
2 views (last 30 days)
Show older comments
Amjad Iqbal
on 18 Mar 2022
Commented: Amjad Iqbal
on 18 Mar 2022
Dear Researchers and Programmers,
I have 2D matirx with logical 1, and 0. I need to select the indices having logical value 1.
Then in the second matrix, I want to replace those indices with zero.
I have attached both the matrices one is binary image and other is processed image.
I look forward to receive your valueable suggestions.
Many thanks.


0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!