Accessing data within a structure
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
alexandra ligeti
am 10 Mai 2022
Kommentiert: alexandra ligeti
am 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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/992945/image.png)
Within the structure angles there are various data fields:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/992950/image.png)
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/992955/image.png)
I have tried using getfield but that is not working:
Leftkneeangles = getfield('angles','angles.LKneeAngles');
Thanks for all your help in advance.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!