Ribbon Plots in MATLAB®
How to make Ribbon Plots in MATLAB® with Plotly.
Plotly Studio: Transform any dataset into an interactive data application in minutes with AI. Try Plotly Studio now.
Note: We are retiring documentation for R, MATLAB, Julia, and F# in November 2025. Learn more about this change here.
Ribbon Plot
Create a ribbon plot of the peaks
function.
[x,y] = meshgrid(-3:.5:3,-3:.1:3);
z = peaks(x,y);
figure
ribbon(y,z)
fig2plotly(gcf);