www.gusucode.com > phased 案例源码 matlab代码程序 > phased/ConvertRadiationPatternToAzElExample.m
%% Convert Radiation Pattern to Azimuth and Elevation % Convert a radiation pattern to azimuth/elevation form, with the azimuth % and elevation angles spaced 1° apart. %% % Define the pattern in terms of φ and θ. % phi = 0:360; theta = 0:180; pat_phitheta = mag2db(repmat(cosd(theta)',1,numel(phi))); %% % Convert the pattern to azimuth/elevation space. pat_azel = phitheta2azelpat(pat_phitheta,phi,theta);