Code covered by the BSD License  

Highlights from
Newton-Raphson Loadflow

from Newton-Raphson Loadflow by PRAVI
These matlab m files are used to calculate bus voltages and angles using Newton Raphson iterative me

pol2rect(rho,theta)
% Polar to Rectangular Conversion
% [RECT] = RECT2POL(RHO, THETA)
% RECT - Complex matrix or number, RECT = A + jB, A = Real, B = Imaginary
% RHO - Magnitude
% THETA - Angle in radians

function rect = pol2rect(rho,theta)
rect = rho.*cos(theta) + j*rho.*sin(theta);

Contact us at files@mathworks.com