Interpolating unequally spaced data

2 ビュー (過去 30 日間)
Anisha Varughese
Anisha Varughese 2019 年 7 月 29 日
コメント済み: Star Strider 2019 年 7 月 29 日
Hey,
I have an excel file containing the data of a propeller showing u,v,w velocities wrt arrival time. But the data collected is unequally spaced. I would like to interpolate the whole data and have tried pchip for it but for some reason doesnt get the result. Can someone help me with this. I have attached the excel sheet for reference.
Thank you in advance

採用された回答

Star Strider
Star Strider 2019 年 7 月 29 日
Use the Signal Processing Toolbox resample function:
[D,S] = xlsread('Vinf9P12RPM2981K0I0B0V2.000001.xls','Group 2');
Fs = 1/0.4;
[D79,tr] = resample(D(:,7:9),D(:,2),Fs);
figure
plot(D(:,2), D(:,7:9), '+-')
grid
xlim([10 30])
title('Original Signal')
legend(S(7:9), 'Location','SE')
figure
plot(tr, D79, '+-')
grid
xlim([10 30])
title('Resampled Signal')
legend(S(7:9), 'Location','SE')
The original signal has a mean sampling frequency of 0.4063 s (median 0.3413 s) with a standard deviation of 0.2965 s.
This resamples it to a sampling interval of 0.4 s and a sampling frequency of 2.5 Hz.
  4 件のコメント
Anisha Varughese
Anisha Varughese 2019 年 7 月 29 日
Thanks
Star Strider
Star Strider 2019 年 7 月 29 日
As always, my pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by