k-Wave Toolbox Previous   Next

stackedPlot

Stacked linear plot

Syntax

stackedPlot(data)
stackedPlot(x, data)
stackedPlot(x, y, data)

Description

stackedPlot produces a series of stacked linear plots of the rows in data (a 2D matrix) against the vector x. The vector y defines the y-axis label for each linear plot. The plot can be annotated in the normal fashion after display. For example, each of the following

stackedPlot(rand(5, 100));
stackedPlot(0.1:0.1:10, rand(5, 100));
stackedPlot(0.1:0.1:10, {'a', 'b', 'c', 'd', 'e'}, rand(5, 100));

will produce stacked plots of random data, but with different axis labels.

Inputs

x

vector defining the x-axis values

y

vector defining the y-axis labels used for each plot

data

2D matrix to plot

See Also

plot


© 2009, 2010, 2011 Bradley Treeby and Ben Cox.