Effacer les filtres
Effacer les filtres

リサンプリング方法に関して

1 vue (au cours des 30 derniers jours)
卓也
卓也 le 29 Août 2023
Modifié(e) : Harry Maguire le 21 Mar 2024
240hzで計測されたデータを1000hzでリサンプリングする方法を教えていただきたいです.

Réponse acceptée

交感神経優位なあかべぇ
240hzで計測したデータをinterp1を使用した線形補完を行い疑似的に1000Hzのデータを作成するのがよいかと思います。
data240hz = rand(1,24).*100; % 240Hzのデータを用意
resample1000hz = interp1(data240hz, 1:240/1000:length(data240hz)); % 1000Hzの周期で線形補完
% 以下結果の可視化
plot((0:length(data240hz)-1) ./ 240, data240hz, 'Marker', 'o', 'DisplayName', '240hz');
hold on;
plot((0:length(resample1000hz)-1) ./1000, resample1000hz, 'Marker', 'o', 'DisplayName', '1000hz');
legend();
  1 commentaire
Harry Maguire
Harry Maguire le 21 Mar 2024
Modifié(e) : Harry Maguire le 21 Mar 2024
Thanks for solution..It also help me.https://solarpowercomparisons.com/

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!