필터 지우기
필터 지우기

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일
편집: 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