Code covered by the BSD License  

Highlights from
Phased Array Design Toolbox v2.4.2

image thumbnail

Phased Array Design Toolbox v2.4.2

by

 

10 Feb 2009 (Updated )

A toolbox allowing rapid definition and evaluation of 2D and 3D phased array antennas.

[r,th,phi]=cart2sph1(x,y,z)
function [r,th,phi]=cart2sph1(x,y,z)
% Cartesian to Spherical coordinate conversion
%
% Usage: [r,th,phi]=cart2sph1(x,y,z)
%
% r....Radius (units)
% th...Theta measured from z-axis (radians)
% phi..Phi measured from x-axis (radians) 

r=sqrt(x.^2+y.^2+z.^2);
th=acos(z./r);
phi=atan2(y,x);

Contact us