MATLAB: Plotting two(function) curve in same figure?how MATLABplottingsubplot can Iam plotting two(function) curve in one figure?how? y1=function y2=function x=1:1:40 plot(x,y1) plot(x,y2) in same figure? how? Best Answer plot(x,y1)hold onplot(x,y2)%orplot(x,y1,x,y2)%orplotyy(x,y1,x,y2) Related SolutionsMATLAB: Fill the region between two lines Use the patch (link) function: x=0:0.1:10;y1=exp(-x/2);y2=exp(-x/3);figurehold allplot(x,y1)plot(x,y2)patch([x fliplr(x)], [y1 fliplr(y2)], 'g')hold offTo use it, create a closed area (the reason for the fliplr calls, since they create the closed area), and choose the color. MATLAB: MATLAB two Graph Plotting %if true % code% endfigure(1)plot()......figure(2)plot()......Follow this sequence for plotting. There is no legend1. Only legend Related QuestionSmooth curves how toDisplaying three set of plots in one figure
Best Answer