MATLAB: How to raise a matrix to multiple powers 0 to 100.

graphingmatricesmatrixpower

Hello, how might one set up where a matrix can be raised through multiple powers one by one? I am trying to do the number [0:100] and then raising the matrix to those powers like this matrix(3×3)^[0:100], but no matter what it will not accept my parameters. I can not find an answer anywhere.

Best Answer

mat=..?? % Define the given Matrix
mat_result=cell(1,100);
for i=1:100
mat_result{i}=mat.^i;
end