Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



how to vectorize this loop
Posted:
Apr 18, 2011 9:12 PM


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



