MATLAB: How can i plot f(i),g(i),h(i) in one figure(i) cell arraysmatlabfunctionplotsubplotsymbolicSymbolic Math Toolbox I want to plot each three diagrams in one figure Best Answer Use the subplot function.Your loop becomes:figure(1)for i = 1:3 subplot(3,1,i) . . . plot(x,f(i),'-b', ... ) . . .endto get 3 stacked plots in one figure. Other configurations are possible. See the documentation on subplot for details. Related SolutionsMATLAB: Which commands can I use to create plot for sin, cos, tan in same graph using subplots on the interval [-pi, pi] Read subplot() , if you have doubts still try some code and ask:Same like your previous question use fplot(...,[,]) the square brackets define the interval , use three subplots for each function MATLAB: I get an error when I plot it figure(1)subplot(2,6,1)fplot(f,[-2,2])subplot(2,6,2)fplot(g(x),x) Related QuestionProblem with Symboli integration by partial fractionHow to subplot data from two matrix using for loopIntegral keeps showing wrong answerProblem with symbolic calculation
Best Answer