Write a complex number in polar form
261 次查看(过去 30 天)
显示 更早的评论
Hello,I would like to know how do I write a complex number in its polar form. Like the image below.
Mycode:
Soperacao = (0.8*250*0.746e3)/(0.87*0.85)
IloadM1 = Soperacao/(sqrt(3)*2.4e3);
IloadM1angle = rad2deg(acos(0.85));
IloadM1 = [IloadM1 IloadM1angle] % is not working, in this way
Iload = IloadM1/(600/(sqrt(3)*2.4))
re = abs(Iload);
thetae = angle(Iload);
Icc3phi_angulo = rad2deg(thetae);
fprintf('Iload = %0.4f /__ %0.2f\n', re, Icc3phi_angulo)
The operation, i want to do:
0 个评论
采纳的回答
Star Strider
2021-7-23
The ‘image below’ is slightly difficult to read, however the code to do that is easy to write. This is called phasor notation.
phasorr = @(z) [abs(z) angle(z)];
phasord = @(z) [abs(z) rad2deg(angle(z))];
Z = [5 + 1j*2; 5 - 1j*2]
prad = phasorr(Z)
pdeg = phasord(Z)
Check = [prad(:,1) .* exp(1j*prad(:,2))]
And it works!
.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Octave 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!