filter data

y(n)=14x(n)+14x(n1)+14x(n2)+14x(n3)
load count.dat
x = count(:,1);
Create the filter coefficient vectors.
a = 1;
b = [1/4 1/4 1/4 1/4];
Compute the 4-hour moving average of the data, and plot both the original data and the filtered data.
y = filter(b,a,x);

t = 1:length(x);
plot(t,x,'--',t,y,'-')
legend('Original Data','Filtered Data')

Yorumlar

Bu blogdaki popüler yayınlar

POLYFIT

XLSREAD

POLYVAL