Info
This question is closed. Reopen it to edit or answer.
Apply Connectivity concept but not on binary matrix
1 view (last 30 days)
Show older comments
Hi, I have a Matrix
A=[4 4 4 1 1 0 0;3 3 3 1 1 0 4;3 3 3 2 2 1 1;2 2 2 2 2 1 3]
I want to extract chunks of this matrix, like
[4 4 4], [1 1;1 1], [0 0], [3 3 3;3 3 3], [2 2 2], [2 2;2 2], [1 1], [1], [3]
etc. I have tried to use diff command. But i am unable to extract anything useful. plz help.
3 Comments
Walter Roberson
on 6 Aug 2015
Are the values integers? Non-negative integers? Do you have the Image Processing Toolkit?
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!