Differenz between interpolation and resampling
古いコメントを表示
Hi,
i have a data set of force values for an industrial upsetting machine. The data has an original sample rate FS=250kHz and a duration of 10sec. For data processing purposes i want to upsample the data to FS=1000kHz. I have read that the function "resample" also incorporates a FIR anti-aliasing filter. Is this the only differenz?
As my signal only containing frequencies up to 30kHz and lower, is there still the need of using the resample function with the FIR filter?
Furthermore i performed both functions (resample and interp) on my signal and the results were quite the same (as shown in the picture), except for the last part. Any ideas why both functions fail to resample the original signal correctly in the second section?
Here is my code:
time_fs250=linspace(0, 10-1/250000, 2500000)';
time_fs1000=linspace(0, 10-1/1000000, 10000000)';
force_resample=resample(force,4,1);
force_interpolate=interp(force,4);
plot(time_fs250,force,time_fs1000,force_resample,'g',time_fs1000,force_interpolate,'m');
legend('Original FS=250k', 'Resampled FS=1000k', 'Interpolated FS=1000k');
xlabel('time');
ylabel('force');
Thanks for your help!
4 件のコメント
Greg Dionne
2017 年 9 月 5 日
Any chance you could post your data as well?
Manuel
2017 年 9 月 5 日
Manuel
2017 年 9 月 5 日
Greg Dionne
2017 年 9 月 5 日
Alright, I'll take a look. You might be experiencing an artifact of the default FIR filter.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!