Lets say I have a 3x3 matrix and a 3x1 vector, I want to multiply my matrix A with vector P multiple times.
A=[0 0.3 0.5; 0.8 0 0.5; 0.2 0.7 0] * P=[1; 1; 1]
I want to multiply the answer of this with P for N times.
Now I can do this by hand but I am being forced to use Matlab and it is giving me a headache.
Cheers
(((A*P)*P)*P)....)*P? Use aforloop - DanA*Pis a 3x1 vector, how do you want to matrix-multiply that with another 3x1 vector? - AmroN=4,A*P*P'*P*P'- Dennis Jaheruddin