www.gusucode.com > phased 案例源码 matlab代码程序 > phased/SphericalRepresentationOfUnitZVectorExample.m
%% Spherical Representation of Unit Z-Vector % Start with a vector in Cartesian coordinates pointing along the % _z_-direction and located at 45° azimuth, 45° % elevation. Compute its components with respect to the spherical basis at % that point. vr = [0;0;1]; vs = cart2sphvec(vr,45,45)