i am having accelerometer and i am getting its x,y and z axis values(in g units) continuously from the serial port. i need to filter/smooth-en the incoming data. so i want to apply moving average filter/Savitzky-Golay smoothing filters.. how can i do it?. In http://in.mathworks.com/help/matlab/data_analysis/filtering-data.html they took an 24×3 array.. but in my case array size is not known or it keeps on increasing.. so how to solve this problem?
MATLAB: How to apply moving average filter for continious strem of incomming data
moving average filter
Best Answer