FUNCTION REFERENCE
tanh
Hyperbolic tangent.
Hyperbolic tangent.
Syntax
y = tanh(X)Applies elementwise to a real or complex double array; the result has the size of X.
Example
tanh(0.5) % 0.4621Differences from MATLAB: Character, logical and cell input stop with an error, as MATLAB's sinh does; single input is not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.