www.gusucode.com > phased 案例源码 matlab代码程序 > phased/CartesianRepresentationOfAzimuthalVectorExample.m

    %% Cartesian Representation of Azimuthal Vector
% Start with a vector in a spherical basis located at 45° azimuth,
% 45° elevation. The vector points along the azimuth direction.
% Compute the vector components with respect to Cartesian coordinates.
vs = [1;0;0];
vr = sph2cartvec(vs,45,45)