Hi
This loop takes about 0.085 seconds to execute and needs to be executed several thousand times. Is there a way you think I can vectorize this? I really appreciate any help!
wsize = 20;vin = rand(1200,1);for idx = wsize:length(vin) mstd(idx-wsize+1, :) = std(vin(idx-wsize+1:idx));end
PS: I don't have Parallel Processing toolbox.
Best Answer