Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
|
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. | |
Function to write marker data to a .trc file.
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.
times | Double vector: Time in seconds (nNodes x 1) |
data | Double matrix: Data, e.g. all generalized coordinates (nNodes x 3*nMarker) |
names | Cell of chars: Names of the data which will be used as headers (1 x nMarker) |
filenameAll | String: Filename to save the data including path and file extension ('.trc') |
inMM | (optional) Boolean: True if the data is given in millimeter (default: 0) |