MATLAB: Shade the area between two graphs areagraphsplot Hi, i have this graph from my simulation. I want to highlight the area between the two graph with some colors. How can i do it ? Best Answer http://www.mathworks.com/matlabcentral/fileexchange/13188-shade-area-between-two-curves Related SolutionsMATLAB: How to create a graph with two shaded areas I suggest you check out this page:http://www.mathworks.com/help/matlab/ref/patch.html MATLAB: Shade area between graphs Try using fill() instead of area():x = 1 : 300;curve1 = log(x);curve2 = 2*log(x);plot(x, curve1, 'r', 'LineWidth', 2);hold on;plot(x, curve2, 'b', 'LineWidth', 2);x2 = [x, fliplr(x)];inBetween = [curve1, fliplr(curve2)];fill(x2, inBetween, 'g'); Related QuestionHow to put a red border area in the graphShade areas between graphsIs polyarea command related to fill comandShade area under curve between two x valuesHow to shade an area of the graph between two vertical linesI need a function to calculate the hatched area
Best Answer