필터 지우기
필터 지우기

Accessing data within a structure

조회 수: 12 (최근 30일)
alexandra ligeti
alexandra ligeti 2022년 5월 10일
댓글: alexandra ligeti 2022년 5월 10일
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.

채택된 답변

KSSV
KSSV 2022년 5월 10일
iwant = angles.LkneeAngles

추가 답변 (1개)

Matt J
Matt J 2022년 5월 10일
plot(angles.LKNeeAngles(:,3))
  댓글 수: 1
alexandra ligeti
alexandra ligeti 2022년 5월 10일
Thank you so much! This works.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by