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

    %% Plot Cotangent Function
% Plot the cotangent function on the interval from $-\pi$ to $\pi$.
syms x
fplot(cot(x), [-pi, pi])
grid on