I have a 640x 640 matrix that I am trying to split into smaller matrices (similar to split.ppp) but diagonally, x amount of times. How would I write a code such that: it would cut the matrix diagonally, write all the values inside that diagonal chunk into new matrices?
Extracting off-diagonal slice of large matrix basically like this question but to iterate it throughout the matrix until all slices have been accounted for
I have tried using all the methods here as a base, but have been unsuccesful in applying it to my problem
https://i.stack.imgur.com/52Ml2.jpg
From the picture, I have taken a matrix, spliced it up into strips ( as in the picture) and then each splice will be plotted as point pattern. I wanto do the same, but diagonally splice it up this time
I have cut the matrix up vertically 30 times, and then off each 'piece' conducted spatial analysis on them. I am trying to do the same but now diagonally.
#original
1 0 0 1 1 0
1 1 0 0 1 1
1 0 1 1 0 0
0 1 0 1 1 1
1 1 0 1 1 0
1 1 1 0 1 0
#new sub matrix containing slice
1 x x x x x
0 1 x x x x
1 0 1 x x x
x 0 1 1 x x
x x 1 0 0 x
x x x 1 0 1
#next sub matrix ( moving along the diagonal
x 0 1 1 x x
x x 1 0 1 x
x x x 0 1 1
x x x x 0 0
x x x x x 1
x x x x x x
and repeat until all values are accounted for