resample results are abnormal

2 ビュー (過去 30 日間)
GI JOON SONG
GI JOON SONG 2023 年 4 月 25 日
コメント済み: Mathieu NOE 2023 年 5 月 17 日
I used resample(n,p,q) to equalize length of vectors.
each vectors are EMG sampled data, and sampling rate is 2000Hz.
After resampling, there are vibrating data which couldn't see at original data.
I'm not sure what I did wrong, why those vibrating data showed?
here's my code;
CommonLength = 1000;
emgtemporary = emg_low; % emg_low means a target vector to resample, also means one of EMG sampled data.
EMG_FINAL(:,1) = resample(emgtemporary,CommonLength,length(emgtemporary));
here's data plot;
blue one is data which didn't resampled, orange one is resampled data. vibration is appear at both end of data plot.
  5 件のコメント
Stephen23
Stephen23 2023 年 5 月 17 日
Mathieu NOE
Mathieu NOE 2023 年 5 月 17 日
yes , generally speaking you're right
nevertheless, when you see here that a signal contains several thousands of samples per period , (and looks like a distorded sine) that means we are very far from a risk of aliasing with interp1 unless you would use interp1 with only less than 5 samples total. Need a bit of thinking ....
would like to see the difference in outputs of both methods on this signal (if the data was available)

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by