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

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.
 

Detailed Description

Function to write data to a .mot or .sto file.

Author
Marlies Nitschke
Date
July, 2019

Function Documentation

◆ writeMotSto()

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.

Parameters
timesDouble vector: Time in seconds (nNodes x 1)
dataDouble matrix: Data, e.g. all generalized coordinates (nNodes x nSig)
namesCell of chars: Names of the data which will be used as headers (1 x nSig)
filenameAllString: 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)