FUNCTION REFERENCE

sec

Secant of argument in radians.

Secant of argument in radians.

Syntax

y = sec(X)

Computed as 1./cos(X), as in MATLAB, elementwise on a real or complex double array. Out-of-domain real input gives a complex result.

Example

sec(pi/3)   % 2.0000

Differences 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.