ribbon
Ribbon plot.
📝Syntax
ribbon(Z)
ribbon(Y, Z)
ribbon(Y, Z, width)
ribbon(ax, ...)
s = ribbon(...)
📥Input Arguments
Parameter Description
Z z-coordinates: vector or matrix.
Y y-coordinates: vector or matrix.
width ribbon width.
ax a scalar graphics object value: parent container, specified as a axes.
📤Output Arguments
Parameter Description
s a vector of surface objects.
📄Description

ribbon(Z) plots a 3D ribbon graph based on the matrix Z with the values of Y defining the y-axis of the graph.

ribbon(Y, Z) plots a 3D ribbon graph based on the matrix Y with the values of Z defining the z-axis of the graph.

s = ribbon(...) returns a vector of surface objects.

Note that Y and Z must have the same size.

💡Examples
f = figure();
Y = peaks(25);
ribbon(Y)
Example illustration
🔗See Also
surfmeshgrid
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub