Black Lives Matter. Please consider donating to Black Girls Code today.

Ribbon Plots in MATLAB®

How to make ribbon plots in MATLAB®.


[x,y] = meshgrid(-3:.5:3,-3:.1:3);
z = peaks(x,y);
figure
ribbon(y,z)
fig2plotly()

MATLAB is a registered trademark of The MathWorks, Inc.