Cartesian to polar matrix
29 ビュー (過去 30 日間)
古いコメントを表示
Hello,
There is a matrix ;
Ybus=
x1+y1j x2+y2j x3+y3j x4+y4j
Our code should convert polar form;
Result=
x1angle x2 angle x3 angle x4 angle
Can you help us ,please?
0 件のコメント
回答 (2 件)
Bhaskar R
2019 年 11 月 23 日
If Ybus = [x + iy] then
[angle_Ybus, rho_Ybus] = cart2pol(real(Ybus), imag(Ybus));
see the more details in https://in.mathworks.com/help/matlab/ref/cart2pol.html
2 件のコメント
Bhaskar R
2019 年 11 月 25 日
Ybus = [ 20-j*50 -10+j*20 -10+j*30
-10+j*20 26-j*52 -16+j*32
-10+j*30 -16+j*32 26-j*62];
[angle_Ybus, rho_Ybus] = cart2pol(real(Ybus), imag(Ybus));
D = rad2deg(angle_Ybus);
% initialize Result with zeros
Result = zeros(size(rho_Ybus, 1), 2*size(rho_Ybus, 2));
% place rho values in alternative column
Result(:,1:2:end) = rho_Ybus;
% place D values in alternative column
Result(:,2:2:end) = D;
% Result is your required matrix
参考
カテゴリ
Help Center および File Exchange で Polar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!