MATLAB: How to plot 3D line graph

plot

How to plot a 3D graph below.
I had tried "bar3", but it shown all the line up as bar graph.
I want the line shown below.

Best Answer

That looks like a waterfall plot.
In the future, you can scan through the list of plots in the Plots tab of the toolstrip for one whose thumbnail looks similar to the type of plot you want. This may help you identify a useful function. Even if it's not exactly what you're looking for, you may be able to adjust properties of that plot or use one of the plotting functions in the See Also section of that function's documentation page to get closer.
Related Question