80211n信道模型matlab代码
function [R,Q,sigma_deg] = correlation(M, spacing, d_norm, cluster_number, amplitude_cluster,PAS_type, phi_deg, AS_deg, delta_phi_deg, type)
%Derives the correlation matrix R from the description of the environment, namely the antenna element %spacing and the way the waves impinge (number of clusters, PAS type, AS and mean angle of incidence.The %generated correlation coefficients are either(complex) field correlation coefficients (type = 0) %or (real positive) power correlation coefficients (type = 1).
% Inputs
%
% * Variable M, number of antenna elements of the ULA
% * Variable spacing, spacing of the antenna elements of the ULA
% * Vector d_norm, containing the relative spacings of the M
% elements of the ULA with respect to the first one
% * Variable cluster_number, number of impinging clusters
% * Vector amplitude_cluster, containing the amplitude of
% the cluster_number impinging clusters
% * Variable PAS_type, defines the nature of the PAS, isotropic
% uniform (1), isotropic Gaussian (2), isotropic Laplacian (3)
% or directive Laplacian (6) according to 3GPP-3GPP2 SCM AHG
% radiation pattern
% * Vector phi_deg, containing the AoAs of the number_cluster
% clusters
% * Vector AS_deg, containing the ASs of the number_cluster
% clusters
% * Vector delta_phi_deg, containing the constraints limits
% of the truncated PAS, if applicable (Gaussian and Laplacian
% case)
% * Variable type, defines whether correlation properties
% should be computed in field (0) or in power (1)
%
% Outputs
%
% * 2-D Hermitian matrix R of size M x M, whose elements are
% the correlation coefficients of the corresponding elements
% of the ULA impinged by the described PAS
%Vector Q of cluster_number elements, giving the normalisation
% coefficients to be applied to the clusters in order to have
% the PAS fulfilling the definition of a pdf
% * Vector sigma_deg of cluster_number of elements, giving
% the standard deviations of the clusters, derived from
% th