Kinarm | Interactive Robotics Brain Injury Research

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

Mobile nav

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 4 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 4 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 2 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

  • Install/Maintain Your KINARM Lab
  • Creating Custom Tasks
  • User Guides & Documentation
  • Q&A Forum
  • Software Downloads
  • Sample Custom Tasks
  • 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

Products

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

Clinical Applications

  • Acquired Brain Injury
  • Pediatric Brain Injury
  • Neurodegenerative
  • Clinical Research Sites
  • Publications

News

  • Kinarm News
  • Events
    • Neuroscience
    • Kinarm Camp
  • Product Notices

Support

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

About Us

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

Contact

  • Contact Kinarm
  • Request an Account
  • Login
footer-logo

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

© Copyright BKIN Technologies. All Rights Reserved

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