Date: Apr 18, 2011 9:12 PM
Author: Mateusz Gos
Subject: how to vectorize this loop

hi,
i would like to write the following loop in form of a vector, which I am guessing is possible (or not?):

n = 1;
for n = 1:20
R = mean(measurements(1:n));
n = n+1;
end

thanks,
mat