Main Content

sind

Sine of argument in degrees

Description

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

example

Examples

collapse all

sind(180)
ans = 
0
sin(pi)
ans = 
1.2246e-16
z = [90+i 15+2i 10+3i];
y = sind(z)
y = 1×3 complex

   1.0002 + 0.0000i   0.2590 + 0.0337i   0.1739 + 0.0516i

Input Arguments

collapse all

Angle in degrees, specified as a real-valued or complex-valued scalar, vector, matrix, multidimensional array, table, or timetable. The sind operation is element-wise when X is nonscalar.

Data Types: single | double | table | timetable
Complex Number Support: Yes

Output Arguments

collapse all

Sine of angle, returned as a real-valued or complex-valued scalar, vector, matrix, multidimensional array, table, or timetable of the same size as X.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced before R2006a

expand all

See Also

| |