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;

 採用された回答

Mischa Kim
Mischa Kim 2015 年 2 月 27 日

0 投票

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.

1 件のコメント

nullpointer
nullpointer 2015 年 2 月 27 日
Thanks alot for your help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by