ribboncoloredZ is a wrapper of buitlin ribbon() and color ribbons according to Z values and axes' colormap.
h = ribboncoloredZ(y)
h = ribboncoloredZ(y,z)
h = ribboncoloredZ(y,z,width)
h = ribboncoloredZ(axh,_____)
y,z y can be a matrix whose columns are plotted as separate
ribbons. Or, when y and z are provided, they are vectors of
the same size.
width (default) 0.75
(Optional) Width of ribbons in X axis
h Graphic handle vector of surface objects
ribbon, surface, colormap, ribboncoloredZ_script
[x,y] = meshgrid(-3:.5:3,-3:.1:3);
z = peaks(x,y);
ribboncoloredZ_script.mlx included in the zip file illustrates the outcome of the above example.
Kouichi C. Nakamura (2020). ribboncoloredZ.m (https://www.mathworks.com/matlabcentral/fileexchange/57909-ribboncoloredz-m), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!