I want to express a number as a complex number
1 回表示 (過去 30 日間)
古いコメントを表示
I have the following expression in polar form 700 angle of 8.11 ..... I want to express this number in matlab. How can I express it as a single number in either polar or rectangular mode?
0 件のコメント
採用された回答
Walter Roberson
2018 年 3 月 2 日
There is no MATLAB notation for polar form. Some languages have notations such as 700+<8.11 but MATLAB does not.
For radius R (such as 700) and angle A (such as 8.11*pi/180) then the complex representation is
R*(cos(A) + 1i*abs(sin(A)))
This might not work for negative angles, possibly.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!