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
Save .trc file on matlab
- Sanchana Krishnakumar
- Posts: 11
- Joined: Thu Feb 06, 2020 7:38 am
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: Save .trc file on matlab
This script demonstrates writing a TRC file from Matlab using TRCFileAdapter.write(): https://github.com/opensim-org/opensim- ... e_tables.m (lines 89-95).