Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
卓也
卓也 il 29 Ago 2023
Modificato: Harry Maguire il 21 Mar 2024
240hzで計測されたデータを1000hzでリサンプリングする方法を教えていただきたいです.

Risposta accettata

交感神経優位なあかべぇ
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 Commento
Harry Maguire
Harry Maguire il 21 Mar 2024
Modificato: Harry Maguire il 21 Mar 2024
Thanks for solution..It also help me.https://solarpowercomparisons.com/

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!