So i have this data
data = 2 3 1 4 5 6
the calculation that i need is find average from last 6 data and storing the result as last data, and keep repeating until certain data, in this case im trying until 5 new data. so from that data, my new data should be
newdata=2314563.53.753.8754.354.41
im still stuck until this code
clcdata=[2;3;1;4;5;6]for i=1:5newdata(i)=mean(data);endnewdata'
Best Answer