www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/GettingStartedExplicitFunctionPlotExample.m
%% Explicit Function Plot % Create a 2-D line plot by using |fplot|. Plot the expression % $x^3-6x^2+11x-6$. syms x f = x^3 - 6*x^2 + 11*x - 6; fplot(f) %% % Add labels for the x- and y-axes. Generate the title by using % |texlabel(f)|. Show the grid by using |grid on|. For details, see % <docid:creating_plots.f6-35125>. xlabel('x') ylabel('y') title(texlabel(f)) grid on