hi everyone,
I've got a "for" cycle of i=1:100 iterations, and in every iteration MATLAB calculates a matrix called "A".
Now for every iteration I need to sum the current matrix "A" with the previous same five matrices.
If "A" was a scalar I could do:
a(i)=a(i-1)+a(i-2)+a(i-3)+a(i-4)
but I don't now how to handle this with a matrix…could you help me?
thanks a lot!! fab
Best Answer