www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/SpecifyPlottingIntervalExample.m

    %% Specify Plotting Interval
% Plot $\sin(x)$ over $[-\pi/2, \pi/2]$ by specifying the plotting interval as
% the second input to |fplot|.

syms x
fplot(sin(x),[-pi/2 pi/2])