Accessing data within a structure

8 vues (au cours des 30 derniers jours)
alexandra ligeti
alexandra ligeti le 10 Mai 2022
Hi,
I am using biomechanical data from Vicon. I have used the toolbox btk to get the various parameteres recorded by vicon stored in c3d files into seperate structures. However, I am unsure how to get the data I would like to analyse. For example there is 1x1 structure labelled angle:
Within the structure angles there are various data fields:
How do I access these various fields independantly?
For example how to I get the LKneeAngle from the structure Angles and to be able to plot the third column of data within this data field?
I have tried using getfield but that is not working:
Leftkneeangles = getfield('angles','angles.LKneeAngles');
Thanks for all your help in advance.

Réponse acceptée

KSSV
KSSV le 10 Mai 2022
iwant = angles.LkneeAngles

Plus de réponses (1)

Matt J
Matt J le 10 Mai 2022
plot(angles.LKNeeAngles(:,3))
  1 commentaire
alexandra ligeti
alexandra ligeti le 10 Mai 2022
Thank you so much! This works.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by