Kinarm | Interactive Robotics Brain Injury Research

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

Mobile nav

trial ordering in c3d_load

trial ordering in c3d_load

Posted on Mar 15, 2015

DWQA Questions › Category: KINARM Data › trial ordering in c3d_load
0 Vote Up Vote Down
Duncan McLean Staff asked 8 years ago

From brunfeld
I am reading in data using zip_load found in the c3d_load folder downloaded from you website. I noticed that the output is a struct array that is ordered via TP number, not trial number. Is there a way to have the output to zip_load order in terms of trial number?

1 Answers
0 Vote Up Vote Down
Duncan McLean Staff answered 8 years ago

Hi Alex,

The trials should be load in the order they were run, this is the TRIAL:TRIAL_NUM parameter. You could sort by just the TP and there are a number of ways to do this. The quick and dirty way I just found is a script like:

exam_data = zip_load;

for idx=1:size(exam_data.c3d, 2)
exam_data.c3d(1, idx).TP = exam_data.c3d(1,idx).TRAIL.TP;
end
nestedSortStruct(exam_data.c3d, ‘TP’);

The nestedSortStruct came from this MATLAB article:

http://blogs.mathworks.com/pick/2010/09/17/sorting-structure-arrays-base…

Please let me know if that helps.

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.