フィルターのクリア

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