clear
data = rand(1,100) - .5;
blockSize = 10;
endIndex = length(data) - blockSize;

for i=1:endIndex
    dataSTD(i) = std(data(i:i+blockSize-1));
    dataRMS(i) = sqrt(sum(data(i:i+blockSize).^2)/blockSize);
end
