Page 1 of 1

Transform mot & trc files automatically

Posted: Mon Jul 27, 2020 5:07 pm
by mritula
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

Re: Transform mot & trc files automatically

Posted: Thu Aug 20, 2020 3:30 am
by kernalnet
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