I wonder if there is a way raise power of a matrix A as an array?
Assume that we have this matrix
A =
5 4
3 6
Then we repeat its shape.
>> repmat(A, 5, 1)
ans =
5 4
3 6
5 4
3 6
5 4
3 6
5 4
3 6
5 4
3 6
Now I want to rase the power so the long repeated matrix looks like this:
>> [A^1; A^2; A^3; A^4; A^5]
ans =
5 4
3 6
37 44
33 48
317 412
309 420
2821 3740
2805 3756
25325 33724
25293 33756
Is it possible to do that without a for loop in MATLAB/Octave?