Code covered by the BSD License  

Highlights from
Electromagnetic Waves & Antennas Toolbox

image thumbnail

Electromagnetic Waves & Antennas Toolbox

by

 

06 Feb 2004 (Updated )

Companion Software

p2c(mag,phase)
% p2c.m - phasor form to complex number
% 
% Usage: z = p2c(mag,phase)
%
% mag = magnitudes of the vector of z's (column or row)
% phase = phases of z's in degrees (column or row)
%
% z = vector of complex numbers (column)

% S. J. Orfanidis - 1999 - www.ece.rutgers.edu/~orfanidi/ewa

function z = p2c(mag,phase)

if nargin==0, help p2c; return; end

z = mag(:) .* exp(j*phase(:)*pi/180);




Contact us