Smoothed daily count of each column by applying a moving average filter of length 7

2 次查看(过去 30 天)
I am trying to read F column data from an excel file and then using command of smooth to solve the problem. But it is giving errors. How can we smooth data of this column by applying average filter of length 7?
clc
clear all
T = readtable('C:\Users\SAS\Downloads\ABC.xlsx', 'Range' , 'F2:F154')
% Calculate daily counts
yy=smooth(T)

回答(1 个)

Maximilian Schönau
编辑:Maximilian Schönau 2020-6-7
To use a moving average filter in Matlab, use:
M = movmean(A,k)

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by