资源简介
MIMO_OFDM联合仿真的matlab 源程序(很完整
代码片段和文件信息
function antpar=antparset(varargin)
%ANTPARSET Antenna parameter configuration for SCM
% ANTPAR=ANTPARSET sets default parameters for the input struct ANTPAR.
%
% Default parameters are [ {default} ]:
%
% BsGainPattern - complex BS array element field patterns [ {1} | 4D-array]
% BsGainAnglesAz - azimuth angles (degrees) for BsGainPattern [ {linspace(-18018090)} ]
% BsGainAnglesEl - elevation angles (not used currently)
% BsElementPosition - element spacing for BS linear array in wavelenghts [ {0.5} ]
% MsGainPattern - complex MS array element field patterns [ {1} | 4D-array]
% MsGainAnglesAz - azimuth angles (degrees) for MsGainPattern [ {linspace(-18018090)} ]
% MsGainAnglesEl - elevation angles (not used currently)
% MsElementPosition - element spacing for MS linear array in wavelenghts [ {0.5} ]
% InterpFunction - name of the interpolation function [{‘interp_gain‘}]
% InterpMethod - interpolation method used [{‘cubic‘}]
%
% Some notes about the antenna parameters:
%
% - The complex field patterns are given in linear scale. The antenna gain
% is 20*log10(abs(BsGainPattern)).
% - Field patterns should be defined over the full 360 degree azimuth
% angle. Unless BsGainPattern is a scalar (see below) the intermediate
% values will be interpolated.
% - Only linear arrays are supported currently. The element spacings can
% be given (in wavelengths) in the vectors BsElementPosition and
% MsElementPosition. When a scalar is given (default) uniform spacing
% is assumed.
% - If BsGainPattern and/or MsGainPattern field is a scalar the antenna
% field pattern is assumed constant (equal to the scalar) over the whole
% azimuth angle. For example setting BsGainPattern=SQRT(1.64) (2.15 dB)
% would correspond to a BS dipole array with NumBsElements (see below).
% - When BsGainPattern (MsGainPattern) is a scalar the number of the
% BS (MS) antenna elements is determined from parameters NumBsElements
% (NumMsElements) in the input struct SCMPAR (see SCMPARSET). Otherwise
% the number of elements in the link end is deduced from the dimensions
% of the 4D-array BsGainPattern (MsGainPattern).
% - If BsGainPattern (MsGainPattern) is not a scalar it must be a complex
% 4D-array with dimensions NUM_ELxPOLxELxAZ where NUM_EL is the
% number of array elements POL is 1 or 2 EL is arbitrary and AZ
% is LENGTH(BsGainAnglesAz). If ‘polarized‘ option is used the
% (:11:)th dimension is assumed the vertical polarization and (:21:)
% is assumed the horizontal polarization. Otherwise only the (:11:)th
% dimensions are used. The size of the third dimension is unimportant
% as elevation is not used in the current implementation.
% - SIZE(BsGainPattern4) must equal LENGTH(BsAnglesAz). In other words
% all element patterns ar
评论
共有 条评论