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.

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

x=r.*cos(phi).*sin(th);
y=r.*sin(phi).*sin(th);
z=r.*cos(th);

Contact us