I have a matrix:
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 all the possible 3x3 matrices. Here are some examples:
11 12 16;
18 2 7;
23 20 3
and
5 11 12;
17 18 2;
4 23 20;
etc. In principle, all possible matrices are 3 by 3. How can I do this? Should I use a loop for?
meena source
share