MATLAB: A function that outputs multiple plots MATLAB Can one write a function that outputs multiple plots? https://www.mathworks.com/matlabcentral/answers/116996-how-to-write-a-function-that-returns-a-graph Best Answer function plotoutput()x = 1:10;y = x.*x;plot(x,y)when you call the function, it shows a figure. Related SolutionsMATLAB: Plotting two(function) curve in same figure?how plot(x,y1)hold onplot(x,y2)%orplot(x,y1,x,y2)%orplotyy(x,y1,x,y2) MATLAB: How to plot 2 surf plots in the same figure Use the hold (link) function.figure(1)surf(X,Y,Z1)hold onsurf(X,Y,Z2)hold offgrid on Related QuestionInstantaneous phase angle plots
Best Answer