Transform mot & trc files automatically

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Mritula Chandrasekaran
Posts: 94
Joined: Tue Dec 19, 2017 5:36 am

Transform mot & trc files automatically

Post by Mritula Chandrasekaran » Mon Jul 27, 2020 5:07 pm

Hi,
I have used c3d convert to extract trc and mot files. I could see that all my subjects are perpendicular to x axis like lying down to the floor, if I go to GUI and transform X=90 degrees its fine. Now i have 1000s of files, can I do this transformation programmatically? I use matlab to do Opensim programming. If transformations can be done programmatically, please let me know how.

Thanks
Mritula

Tags:

User avatar
Mohammadreza Rezaie
Posts: 409
Joined: Fri Nov 24, 2017 12:48 am

Re: Transform mot & trc files automatically

Post by Mohammadreza Rezaie » Thu Aug 20, 2020 3:30 am

Hi,

If you use c3dExport.m, you can see an option for rotation the c3d data:

Code: Select all

c3d.rotateData('x',-90)
Hope this help.

Regards

POST REPLY