필터 지우기
필터 지우기

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

조회 수: 8 (최근 30일)
卓也
卓也 2023년 8월 29일
편집: Harry Maguire 2024년 3월 21일
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();
  댓글 수: 1
Harry Maguire
Harry Maguire 2024년 3월 21일
편집: Harry Maguire 2024년 3월 21일
Thanks for solution..It also help me.https://solarpowercomparisons.com/

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!