Navigation : Top/MATLAB/移動平均

移動平均

x2=filter(b,a,x1) a,bはフィルタの係数 

n点の移動平均 
a=1; 
b = ones(1,n)/n;