Save .trc file on matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Sanchana Krishnakumar
Posts: 11
Joined: Thu Feb 06, 2020 7:38 am

Save .trc file on matlab

Post by Sanchana Krishnakumar » Sat Aug 08, 2020 3:32 pm

Hi,

I have a trc file and I would like to cut a part of the .trc file and save it as a new .trc file in MATLAB(I'm trying to split my trials). I have already cut the data but I don't really know on how to write it back as a .trc file in MATLAB. Is there a function to do this?.

I looked ad importing .trc files in many ways but I'm finding it challenging to print the new header. Please help. Thanks in advance.

Regards,
Sanchana

Tags:

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: Save .trc file on matlab

Post by Thomas Uchida » Sun Aug 09, 2020 6:54 am

This script demonstrates writing a TRC file from Matlab using TRCFileAdapter.write(): https://github.com/opensim-org/opensim- ... e_tables.m (lines 89-95).

POST REPLY