Say I have a matrix:
A = [ 1 2 3 ; 4 5 6 ; 7 8 9 ; 10 11 12];
Is there a way to reproduce:
1 on 1 line
line 2 by 2
row 3 by 3
and so on?
I can do this with loops, however, if for the purpose, where do they want us to use matrices. In the actual assignment A random number is populated, but each row that is multiplied sequentially.
Thanks, any help is much appreciated
source share