Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
Loading...
Searching...
No Matches
Functions
writeMarkerTrc.m File Reference

Function to write marker data to a .trc file. More...

Functions

function writeMarkerTrc (in times, in data, in names, in filenameAll, in inMM)
 Function to write marker data to a .trc file.
 

Detailed Description

Function to write marker data to a .trc file.

Author
Marlies Nitschke
Date
November, 2021

Function Documentation

◆ writeMarkerTrc()

function writeMarkerTrc ( in  times,
in  data,
in  names,
in  filenameAll,
in  inMM 
)

Function to write marker data to a .trc file.

This function assumes that the data is given in the correct units. The unit is set in the trc file according to the optional input. Independently of inMM, units will never be converted.

Parameters
timesDouble vector: Time in seconds (nNodes x 1)
dataDouble matrix: Data, e.g. all generalized coordinates (nNodes x 3*nMarker)
namesCell of chars: Names of the data which will be used as headers (1 x nMarker)
filenameAllString: Filename to save the data including path and file extension ('.trc')
inMM(optional) Boolean: True if the data is given in millimeter (default: 0)