Changing frequency of input data

조회 수: 3 (최근 30일)
Eoin Lyden
Eoin Lyden 2021년 1월 19일
댓글: Eoin Lyden 2021년 1월 20일
The data that I am loading in is at a frequency of 128Hz, I need to change this so that the data is at 100Hz or 50Hz, is there a simple way to do this?
The input data is loaded in as a time series at 128Hz, I want to keep it in this form but with a new frequency.
Thanks in advance.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2021년 1월 19일
편집: Fangjun Jiang 2021년 1월 19일
resample()
timeseries object also has resample() method. see
web(fullfile(docroot, 'matlab/ref/timeseries.resample.html'))
tsin = timeseries([1.1 2.9 3.7 4.0 3.0]',1:5);
tsout = resample(tsin,[1 1.5 3.5 4.5 4.9]);
tsindata = tsin.Data
  댓글 수: 1
Eoin Lyden
Eoin Lyden 2021년 1월 20일
That's great, thank you for your help !

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time Series에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by