Resample of time series

I have time series and corresponding amplitude in Excel file. I have to resample it Please help.

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 27 Feb 2014

0 votes

you can use interp1 function
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);

Tags

Asked:

on 27 Feb 2014

Answered:

on 27 Feb 2014

Community Treasure Hunt

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

Start Hunting!