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

7 次查看(过去 30 天)
卓也
卓也 2023-8-29
240hzで計測されたデータを1000hzでリサンプリングする方法を教えていただきたいです.

采纳的回答

交感神経優位なあかべぇ
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();

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!