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

    %% Plot Cosine Function
% Plot the cosine function on the interval from $-4\pi$ to $4\pi$ .
syms x
fplot(cos(x), [-4*pi, 4*pi])
grid on