Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
|
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. | |
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.
t | Double array: Time or sample points of the data (nSamples x 1) |
dataMean | Double 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) |
hMean | Handle of line plot |
hVar | Handle of line plot |