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

Function to plot the mean and optional also plus minus SD. More...

Functions

function plotVariable (in t, in dataMean, in dataVar, in lineSpec, in colorSpec, in faceAlpha, in lineWidth)
 Function to plot the mean and optional also plus minus SD.
 

Detailed Description

Function to plot the mean and optional also plus minus SD.

Details: plotVariable()

Author
Marlies Nitschke
Date
May, 2018

Function Documentation

◆ plotVariable()

function plotVariable ( in  t,
in  dataMean,
in  dataVar,
in  lineSpec,
in  colorSpec,
in  faceAlpha,
in  lineWidth 
)

Function to plot the mean and optional also plus minus SD.

Figure has to be opened. 'hold on' has to be active.

Returns an emtpy vector for the handles which were not plotted.

Parameters
tDouble array: Time or sample points of the data (nSamples x 1)
dataMeanDouble array: Mean of the tracking data variable. It is only plotted if any entry is not nan. (nSamples x 1)
dataVar(optional) Double array: Variance of the tracking data variable. Can be emtpy to be skipped. (nSamples x 1)
lineSpec(optional) String: Line specification for plotting the mean (If you want to skip it use '')
colorSpec(optional) Double array or String: Color of the area (If you want to skip it use '')
faceAlpha(optional) Double: Value for 'FaceAlpha'. (default: 0.1) (If you want to skip it use [])
lineWidth(optional) Double: Value for 'LineWidth'. (default: 0.5)
Return values
hMeanHandle of line plot
hVarHandle of line plot