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

7 views (last 30 days)
卓也
卓也 on 29 Aug 2023
Edited: Harry Maguire on 21 Mar 2024
240hzで計測されたデータを1000hzでリサンプリングする方法を教えていただきたいです.

Accepted Answer

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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!