I got the following problem: In my code I want a matrix-...-matrix-vector in a for loop. In every loop I want to get an additional matrix to multiply with, e.g. i=1: P1\*z and i=2: P1\*P2\*z etc. This is my code so far. Obviously it is just computing: i=1: P1\*z, i=2: P2\*z etc...

```
for ii = 1:10
    % Projection on last_z
    projected_last_z = projection(:,:,ii) * last_z;
end

```