필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

help with homework for cs101, topolar?

조회 수: 2 (최근 30일)
Ruqayyah tahir
Ruqayyah tahir 2014년 12월 6일
마감: Oleg Komarov 2014년 12월 6일
Write a function topolar that accepts a complex number c, and returns two output arguments containing the magnitude mag and angle theta of the complex number. The output angle should be in degrees. The error message must be displayed when the number of input parameters is not equal to one. (a) Show the Matlab function. (b) Test the function by using: [a b]=topolar(3+i*4).

답변 (1개)

Star Strider
Star Strider 2014년 12월 6일
The magnitude and angle (degrees) are easy enough:
abs(c);
atan2d(imag(c),real(c))
respectively.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by