tanh

tanh(X) computes hyperbolic tangent for each element of X.

Examples

> x = -4:0.2:4

[x:1x41 double]

> plot(x, tanh(x))

[ans:1x1 struct]

Resources

See also

atan | atan2 | atanh | cosh | sinh | tan