I want to do just like the following Matlab, it returns error, how to fix it so Matlab can take it without errors?
load M.dat t = 600; q(1)=[1;0;0;0;0;0;0;0;0;0]; for i=1:t-1, q(i+1) = q(i)*M; end
I want to have qt in the end. q(1) is a matrix called q1, and I want q2 which is q(i+1) to be M*q1 , and q3 to be M*q2 and visa versa until we reach qt
Best Answer