I have a matrix say:
Q = [05 11 12 16 25;
17 18 02 07 10;
04 23 20 03 01;
24 21 19 14 09;
06 22 08 13 15]
I would like to list out all the possible 3x3 matrices. Some examples are:
11 12 16;
18 2 7;
23 20 3
and
5 11 12;
17 18 2;
4 23 20;
etc.. Basically all the possible 3-by-3 matrices. How do I do it? I must use for loop?