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

    %% Vertical Coverage Pattern with Specified Antenna Pattern
% Set the frequency to 100 MHz, the antenna height to 10 m, and the
% free-space range to 200 km. The antenna pattern is a sinc function with
% 45° half-power width. The surface roughness is set to 1 m. The
% antenna tilt angle is set to 0°, and the field polarization is
% horizontal.
pat_angles = linspace(-90,90,361)';
pat_u = 1.39157/sind(45/2)*sind(pat_angles);
pat = sinc(pat_u/pi);
freq = 100e6;
ant_height = 10;
rng_fs = 200;
tilt_ang = 0;
[vcp,vcpangles] = radarvcd(freq,rng_fs,ant_height,...
    'RangeUnit','km','HeightUnit','m',...
    'AntennaPattern',pat,...
    'PatternAngles',pat_angles,...
    'TiltAngle',tilt_ang,'SurfaceRoughness',1);