Kinarm | Interactive Robotics Brain Injury Research

  • Products
  • Clinical Applications
  • News
  • Support
  • About Us
  • Contact

Mobile nav

Extracting data from c3d_data in Matlab

Extracting data from c3d_data in Matlab

Posted on Feb 24, 2016

DWQA Questions › Category: Kinarm Data › Extracting data from c3d_data in Matlab
0 Vote Up Vote Down
Duncan McLean Staff asked 7 years ago

Apologies in advance as this question is not KINARM specific, but a general Matlab question. I have created a task that record ten trials. I wish to extract the ‘Right_HandX(i)’ for i=1:10 from c3d_data(1) such that I have a matrix of values for all trials.

i.e, if each trial produces a [4258×1 double], I would like to produce a [4258×10 double] for all trials. Many thanks.

2 Answers
0 Vote Up Vote Down
Duncan McLean Staff answered 7 years ago

Apologies in advance as this question is not KINARM specific, but a general Matlab question. I have created a task that record ten trials. I wish to extract the ‘Right_HandX(i)’ for i=1:10 from c3d_data(1) such that I have a matrix of values for all trials.

i.e, if each trial produces a [4258×1 double], I would like to produce a [4258×10 double] for all trials. Many thanks.

0 Vote Up Vote Down
Koloman Varady Staff answered 5 years ago

The easiest way to do this is with a loop that counts i = 1:10 and have a matrix that is 4258×10. With each iteration of the loop you can fill the rows one at a time.

If your trials aren’t all the same length (for example, if they’re not all 4258 elements long), you could find the longest trial and make your matrix have that many columns. The other trials could be padded with 0 or NaN.

For example,

1 2 0 0 0
1 2 3 4 5
1 2 3 4 0

Cheers,

Koloman

Support

  • User Guides & Documentation
  • Software Downloads
  • Install/Maintain Your KINARM Lab
  • Training Videos
  • New User Training
  • Creating Custom Tasks
  • Sample Custom Tasks
  • Q&A Forum
  • Publications by Research Area

Products

  • Platform Comparison
  • Kinarm Exoskeleton Lab
  • Kinarm End-Point Lab
  • Kinarm Standard Tests
  • Dexterit-E
  • Dexterit-E Explorer
  • NHP Kinarm Exoskeleton Lab

Clinical Applications

  • Clinical Applications
    • Stroke and TIA
    • Traumatic Brain Injury (TBI)
    • Neurological Disease
    • Pediatric
    • Primarily Non-Neurological
  • Clinical Research Sites
  • Publications

News

  • Kinarm News
  • Events
    • Neuroscience
    • Kinarm Camp
  • Product Notices
  • @KinarmLab Twitter Feed
  • Open Jobs

Support

  • Kinarm Help & Support
  • User Guides & Documentation
  • Software Downloads
  • Installing & Maintaining Your Kinarm Lab
  • Training Videos
  • New User Training
  • Creating Custom Tasks
  • Sample Custom Tasks
  • Q&A Forum

About Us

  • About Us
  • Our People
  • Quality
  • Supplier Requirements
  • End-User License Agreement
  • Intellectual Property
  • Privacy & Terms

Contact

  • Contact Kinarm
    • International Sales Agents
  • Request an Account
footer-logo

140 Railway St. Kingston, ON K7K 2L9 Canada Toll Free: (888) 533-4393 Phone: (613) 507-4393 info@kinarm.com

© Copyright BKIN Technologies. All Rights Reserved

Quality | Privacy Policy | Web design/development by 1dea Design + Media Inc.