k-Wave Toolbox |
![]() ![]() |
Stacked linear plot
stackedPlot(data) stackedPlot(x, data) stackedPlot(x, y, data)
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.
|
vector defining the x-axis values |
|
vector defining the y-axis labels used for each plot |
|
2D matrix to plot |
plot
![]() |
speedSoundWater | toneBurst | ![]() |
© 2009, 2010, 2011 Bradley Treeby and Ben Cox.