Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

secd

Secant of argument in degrees

Syntax

Y = secd(X)

Description

example

Y = secd(X) returns the secant of the elements of X, which are expressed in degrees.

Examples

collapse all

secd(90)
ans = Inf
sec(pi/2)
ans = 1.6331e+16

secd(90) is infinite, whereas sec(pi/2) is large but finite.

z = [35+i 15+2i 10+3i];
y = secd(z)
y = 
   1.2204 + 0.0149i   1.0346 + 0.0097i   1.0140 + 0.0094i

Input Arguments

collapse all

Angle in degrees, specified as a real-valued or complex-valued scalar, vector, matrix, or N-D array. The secd operation is element-wise when X is nonscalar.

Data Types: single | double
Complex Number Support: Yes

Output Arguments

collapse all

Secant of angle, returned as a real-valued or complex-valued scalar, vector, matrix, or N-D array of the same size as X.

Extended Capabilities

See Also

| |

Introduced before R2006a

Was this topic helpful?