If suppose I want to input a matrix
A = [1,2,3; 4,5,6; 7,8,9]
I then choose a number, lets say '2'.
How would I get all possible two by two matrices from matrix A?
A = [1,2,3; 4,5,6; 7,8,9]
with the answer being;
[1,2; 4,5], [2,3; 5,6], [4,5; 7,8], [5,6; 8,9]
Thank you
Best Answer