MATLAB: Area, stairs handle graphicsplot Is there any property setting for 'area' function which generates the 'straits' for the boundary of the colored regions instead of 'plot' curves? http://www.mathworks.com/help/techdoc/creating_plots/f10-19972.html#f10-1833 Best Answer % 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 SolutionsMATLAB: Stairs Command MATLAB Ends Dear T,I think you can do as follows (If i understood correctly)figureX = linspace(0,4*pi,40);Y = sin(X);stairs(X, Y), hold onplot(X(end), Y(end), 'ro', 'linewidth', 2)Or maybe you can use different color for next stairs to see difference between two series.I hope it helps. Good luck! MATLAB: Find area of the filled region of a graph trapz(x,y) Related QuestionProblem with Stairs plotFind the vertices from delaunay triangulationLegend of a patch-object with a line in the centerNeed help making a stairs graph
Best Answer