I want to save all submatrix locations from a given matrix ...
For example: given matrix: zzz =
17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9
allows you to find the location of the submatrix:
kkk =
5 7 14 16 6 13 20 22 12 19 21 3 18 25 2 9
I tried [i, j] = ind2sub (size (zzz), find (ismember (zzz, kkk)))
I get the correct values ββin the i and j matrix.
But if this "zzz" is replaced with some dicom image, and if "kkk" is a small part of this image, in this situation I do not get the desired values ββof me and j ??? Does anyone help me?
source share