Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
|
Function to write data to a .mot or .sto file. More...
Functions | |
function | writeMotSto (in times, in data, in names, in filenameAll, in inDegrees) |
Function to write data to a .mot or .sto file. | |
Function to write data to a .mot or .sto file.
function writeMotSto | ( | in | times, |
in | data, | ||
in | names, | ||
in | filenameAll, | ||
in | inDegrees | ||
) |
Function to write data to a .mot or .sto file.
This function assumes that the data is given in the correct units. isDegrees is set in the mot file according to the optional input. Independently of isDegrees, 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 nSig) |
names | Cell of chars: Names of the data which will be used as headers (1 x nSig) |
filenameAll | String: Filename to save the data including path and file extension ('.mot' or '.sto') |
inDegrees | (optional) Boolean: True if the data is given in degrees (default: 0) |