sin

Returns the sin of a (in radians).

Syntax

R = sin(a)

Inputs

a
Any valid scalar | vector | matrix in radians.
Type: double | integer
Dimension: scalar | vector | matrix

Outputs

R
scalar | vector | matrix

Example

Compute the sine of elements in a matrix:

S = sin([1,2;3,4])
S = [ 0.841471 0.909297 ; 0.14112 -0.756802 ]