필터 지우기
필터 지우기

To change the recording frequency of biomechanical data from 60 Hz to 100 Hz

조회 수: 3 (최근 30일)
Hello,
Would you please help me to find answers to the following questions?
I have biomechanical variables recorded at 60 Hz and I want to upsample them to 100 Hz. The reason is that I need 100 frames per second as a standard for other mathematical calculations. Using mathematical operations, I have to calculate new variables. I am wondering 1) is there a special type of upsampling for biomechanical data? 2) what is the most accurate method for upsampling my data? 3) if it is possible to apply mathematical operations at 60 Hz and then apply upsampling (to new variables resulted from mathematical operations at 60 Hz)?
Somebody introduced me this solution (here the sampling frequency of comvx is 60 Hz and I want to resample it at 100 Hz):
weight= 60 % to normalize data to weight
phaz=100
for i=1:length(comvx);
for j=1:phaz;
comvx_ir(1,:)=1nterp1([1:length (comvx)],comvx(i),[1:(length(comvx)-1/(phaz-1):length(comvx)],'cubic')/weight;
end
end
But I receive the following message:
Error: Unexpected MATLAB expression.
I am a beginner and do not have a good knowledge regarding MATLAB solutions. I really appreciate your assistance.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 7월 12일
Avoid putting a space between a function name and the ( to indicate its arguments.
This is especially important when you are within [] list building or {} cell building, as spaces are significant for those

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

채택된 답변

Star Strider
Star Strider 2020년 7월 11일
I would advise against using interp1. Instead use the Signal Processing Toolbox resample fucntion, since it uses an anti-aliasing filter. This is important if you want to do signal processing with your data. (It may also be more straightforward.)
  댓글 수: 4
Vahid Esmaeili
Vahid Esmaeili 2020년 7월 12일
Dear Star Strider,
Thank you so much for your favors.
Star Strider
Star Strider 2020년 7월 12일
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Biomechanics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by