Matlab Summation Cosine Sine operator

Hi all,
i have been looking at this matlab equation for sometime. I do not understand the sum operation used here. It is used to sum the sin for array b? Likewise for cos?
a = atan2(sum(sin(b)),sum(cos(b)))/2/k;

 Respuesta aceptada

Mischa Kim
Mischa Kim el 27 de Feb. de 2015

0 votos

Correct. b is an array (e.g. vector). The command applies the sine to all the components of b and then sums all those sine terms. Same is true for the cosines.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Feb. de 2015

Comentada:

el 27 de Feb. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by