MATLAB: Problem with Stairs plot stairs I want to to plot stairs similar to figure. Any idea ? Best Answer To achieve a plot as given in the fig.png, you will have to overlay a line plot on a stairstep plot. Use the following example to understand this in detail.Overlay Stairstep Plot and Line Plot Related SolutionsMATLAB: Plotting multiple contour plots in one graph See if the contour3 (link) function will do what you want. MATLAB: Area, stairs % Random row inputx = 1:10;y = rand(1,10);% Normal area chartsubplot(3,1,1)area(x,y)% Stairs chart (non area)subplot(3,1,2)stairs(x,y)% Stairs areasubplot(3,1,3)x = [x;x];y = [y;y];area(x([2:end end]),y(1:end)) Related QuestionI need to plot a line in 3D scatter plotStairs Command MATLAB Ends
Best Answer