how to obtain some data from this figure

2 visualizaciones (últimos 30 días)
kanan
kanan el 31 de En. de 2016
Comentada: Star Strider el 1 de Feb. de 2016
I do not have good experience in matlab and want to know how can I extract features from the attached figure and create feature vector. I have the data and I plot them as shown in the figure. My experiment is to extract gait signal from a person walking style.
I appreciate your help thank you
  2 comentarios
Star Strider
Star Strider el 31 de En. de 2016
Do you have an actual figure .fig file of it, or only the .jpg you posted? With a .fig it’s fairly straightforward. With a .jpg, it’s very much less so.
kanan
kanan el 1 de Feb. de 2016
Yes, I'm attaching it here. Thank you

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 1 de Feb. de 2016
Here you go:
F = openfig('gait.normal.fig');
L = findobj(gca, 'Type', 'line');
XD = get(L, 'XData');
YD = get(L, 'YData');
The ‘XD’ and ‘YD’ are the ‘x’ and ‘y’ data from the plot, respectively. They are both (1x3371) vectors.
  2 comentarios
kanan
kanan el 1 de Feb. de 2016
thank you for your help
Star Strider
Star Strider el 1 de Feb. de 2016
My pleasure.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Properties en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by