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

13 visualizaciones (últimos 30 días)
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

Respuesta aceptada

José-Luis
José-Luis el 5 de Sept. de 2017
If you have the signal processing toolbox:
  2 comentarios
Carolyn
Carolyn el 27 de Sept. de 2019
Yes i would love to see what parameters you ended up using for this.
Iain Hunter
Iain Hunter el 15 de Oct. de 2021
newdata = resample(originaldata,100,length(originaldata));

Iniciar sesión para comentar.

Más respuestas (1)

husnir nasyuha
husnir nasyuha el 4 de Mzo. de 2019
hi, may i know which resample function that you used, and how to normalize the data into 100 percent of gait

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by