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 5 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.

1 Answers
0 Vote Up Vote Down
Koloman Varady Staff answered 3 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

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

Questions about Kinarm products?

Please feel free to contact us, we’d be happy to help.

Contact Us

Dexterit-E Explorer

View any Dexterit-E exam file. FREE to Download!

Learn More

KST Summary

Our Kinarm Standard Tests enable clinical researchers to perform precise neurological assessment.

Learn More

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
  • Installing & Maintaining Your Kinarm Lab
  • User Guides & Documentation
  • Software Downloads
  • Creating Custom Tasks
  • Sample Custom Tasks
  • Training Videos
  • 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
  • Login
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.