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

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