Code covered by the BSD License  

Highlights from
Power System State Estimation using WLS

from Power System State Estimation using WLS by PRAVI
Power System State Estimation using Weighted Least Square Method

rect2pol(x)
% Polar to Rectangular Conversion
% Praviraj P G, MTech I Year, EE Dept., IIT Roorkee, India, Email :pravirajpg@gmail.com
% [RHO THETA] = RECT2POL(X)
% X - Complex matrix or number, X = A + jB
% RHO - Magnitude
% THETA - Angle in radians

function [rho theta] = rect2pol(x)
rho = sqrt(real(x).^2 + imag(x).^2);
theta = atan(imag(x)./real(x));

Contact us at files@mathworks.com