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

13 次查看(过去 30 天)
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:

更多回答(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