tanh Syntax tanh(X) Arguments X is a scalar/vector/matrix. Details The hyperbolic tangent function. Examples tanh(0 1 2); // output: [0,0.761594,0.964028]