Turning x amount of data points in to 100 to get a percentage

조회 수: 18 (최근 30일)
WellsJ
WellsJ 2017년 9월 5일
댓글: Iain Hunter 2021년 10월 15일
Hi,
I have a row vector containing 120 data points. How would I convert that data in to 100. I am working on gait cycles and would like to analyse the knee angles at a certain percentage of the cycle. This is what I was attempting to use but that just seems to ignore any data points past the 100th value.
y = linspace(1,100,100); Gait_Cycle_Percent =interp1(x,y) where x is the raw 120x1 data.
Thank you

채택된 답변

José-Luis
José-Luis 2017년 9월 5일
If you have the signal processing toolbox:
  댓글 수: 2
Carolyn
Carolyn 2019년 9월 27일
Yes i would love to see what parameters you ended up using for this.
Iain Hunter
Iain Hunter 2021년 10월 15일
newdata = resample(originaldata,100,length(originaldata));

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

추가 답변 (1개)

husnir nasyuha
husnir nasyuha 2019년 3월 4일
hi, may i know which resample function that you used, and how to normalize the data into 100 percent of gait

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by