www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/PlotHyperbolicTangentFunctionExample.m

    %% MATLAB(R) Function Handle
% Plot the hyperbolic tangent function from -2 to 2 using the MATLAB(R) function |tanh|.

% Copyright 2015 The MathWorks, Inc.


fh = @tanh;
fplot(fh,[-2,2])