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

Function to plot a shaded area to indicate the stance phase. More...

Functions

function plotStancePhase (in t, in standing, in minY, in maxY, in minX, in maxX, in colorSpec, in faceAlpha)
 Function to plot a shaded area to indicate the stance phase.
 

Detailed Description

Function to plot a shaded area to indicate the stance phase.

Details: plotStancePhase()

Author
Marlies Nitschke
Date
September, 2018

Function Documentation

◆ plotStancePhase()

function plotStancePhase ( in  t,
in  standing,
in  minY,
in  maxY,
in  minX,
in  maxX,
in  colorSpec,
in  faceAlpha 
)

Function to plot a shaded area to indicate the stance phase.

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

It is using 0.1 for FaceAlpha to plot the area.

Parameters
tDouble array: time axis corresponding to the boolean standing array
standingDouble array: 0: no standing; 1: standing (length of t)
minYDouble: min Y value of the area
maxYDouble: max Y value of the area
minXDouble: min X value to paint (first sample of time signal)
maxXDouble: max X value to paint (last sample of time signal)
colorSpec(optional) Double array or String: Color of the area. Can be empty to be skipped. (default: 'k')
faceAlpha(optional) Double: Value for 'FaceAlpha'. (default: 0.1)
Return values
hStandingHandle of the last plotted area