How can i index lower dimensions of a matrix by another matrix of lower dimension?
2 views (last 30 days)
Show older comments
Hello guys,
I want to index lower dimensions by a logical matrix for example:
A is m by n by 3 array. (uint8 RGB image )
B= m by n logic array. Following assignment doesn't work.
A(B,:)=0 ;
How can i do that in the simplest way ? (wtihout assigning 3 channels separetely)
Thanks,
Barış Kılıçlar
2 Comments
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!