Matlab Summation Cosine Sine operator

조회 수: 2 (최근 30일)
nullpointer
nullpointer 2015년 2월 27일
댓글: nullpointer 2015년 2월 27일
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일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by