필터 지우기
필터 지우기

Resample of time series

조회 수: 1 (최근 30일)
Rohit
Rohit 2014년 2월 27일
답변: David Sanchez 2014년 2월 27일
I have time series and corresponding amplitude in Excel file. I have to resample it Please help.

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 2월 27일
you can use interp1 function

David Sanchez
David Sanchez 2014년 2월 27일
Read data from the first worksheet into a numeric array:
A = xlsread('myExample.xlsx');
time = A(:,1); % in case your time series is in the first column of your excell
amplitude = A(:,2) % in case your amplitudes are in the second column of your excell
n = 3; %resample every third value --> adapt to your needs
resample = 1:n:numel(time);
time_resampled = time(resample);
amplitude_resampled = amplitude(resample);

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by