亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? scm.m

?? block_mimo_ ofdm_channelestimation編碼 很好的程序
?? M
?? 第 1 頁 / 共 2 頁
字號:

function [H, delays, full_output]=scm(scmpar,linkpar,antpar,initvalues)
%SCM 3GPP Spatial Channel Model (extended)
%   H=SCM(SCMPAR,LINKPAR,ANTPAR) is a 5D-array of channel coefficients. For
%   explanation of the input parameter structs, see SCMPARSET, LINKPARSET,
%   and ANTPARSET. SIZE(H)=[U S N T K], where U is the number of MS (RX) 
%   elements, S is the number of BS (TX) elements, N is the number of paths, 
%   T is the number of time samples, and K is the number of links. If K=1,
%   the final dimension will be dropped, i.e. H is a 4D-array.
%
%   [H DELAYS]=SCM(...) outputs also a [KxN] matrix of path delays (in seconds). 
%
%   [H DELAYS BULKPAR]=SCM(...) outputs also the struct BULKPAR, whose fields
%   are as follows:
%
%   When scmpar.ScmOptions is 'none' or 'urban_canyon':
%
%   delays          - path delays in seconds [KxN]
%   path_powers     - relative path powers [KxN]
%   aods            - angles of departure in degrees over (-180,180) [KxNxM]
%   aoas            - angles of arrival in degrees over (-180,180) [KxNxM]
%   subpath_phases  - final phases for subpaths in degrees over (0,360) [KxNxM]
%   path_losses     - path losses in linear scale [Kx1]
%   shadow_fading   - shadow fading losses in linear scale [Kx1]
%   delta_t         - time sampling intervals for all links [Kx1]
%
%   In addition, when scmpar.ScmOptions is 'los' (in addition to the above):
%
%   K_factors       - K factors for all links [Kx1]
%   Phi_LOS         - final phases for LOS paths in degrees over (-180,180) [Kx1]
%
%   In addition, when scmpar.ScmOptions='polarized':
%
%   subpath_phases  - final phases for subpaths in degrees over (0,360)
%                     [Kx4xNxM], where the second dimension are the [VV VH HV HH]
%                     components (iid).
%   xpd             - cross-polarization ratios in linear scale [Kx2xN],
%                     where the (:,1,:)th dimension is the V-to-H power coupling, 
%                     and (:,2,:)th dimension is the H-to-V power coupling.
%
%   In addition, when scmpar.IntraClusterDsUsed='yes', the following fields
%   are included [L=LENGTH(NumSubPathsPerMidpath)]:
%   NumSubPathsPerMidpath   - sum over this vector is M  [1xL]
%   MidPathOrder            - order in which midpaths are summed [1xM]
%   MidPathPowers           - powers of midpaths relative to path power [1xL]
%   MidPathDelays           - delays of midpaths relative to path delay [1xL]
%   path_powers_all         - powers of all midpaths for all links [Kx(L*N)]
%
%   When scmpar.DriftShadowFading='yes', 
%   sf_init                 - final values of shadow fading [Kx1] (can be 
%                             used as initial values in recursive use of SCM)
%   
%   When scmpar.DriftDelaysAngles='yes', the delays vector is a KxNxT
%   array. In this case the delays are given wrt first time instant, 
%   i.e., they can be negative.
%
%   Also delays has size [Kx(L*N)]. The number of midpaths per path and the
%   delays and powers of midpaths are constant for all links but may vary in
%   different scenarios. 
%
%   [H ...]=SCM(...,INIT_VALUES) uses initial values given in the struct
%   INIT_VALUES, instead of random parameter generation. INIT_VALUES has
%   the same format as BULKPAR, except that SUBPATH_PHASES are now the
%   initial phases. Also, time sampling intervals (delta_t) are not used
%   (they are recalculated for every call of SCM).
%
%   The 'far scatterer clusters' option [1, Sec. 5.5.2] is not currently
%   supported. The SCM options are mutually exclusive, i.e. one cannot, for
%   instance, choose 'polarized' and 'los' simultaneously.
%
%   Example:
%       % to generate matrices for 10 links with default parameters
%       H=scm(scmparset,linkparset(10),antparset);
%       % to generate matrices for 'urban_macro' scenario
%       scmpar=scmparset;scmpar.Scenario='urban_macro';
%       H=scm(scmpar,linkparset(10),antparset);
%
%   Ref. [1]: 3GPP TR 25.996 v6.1.0 (2003-09)
%        [2]: D. Baum et al, IEEE VTC'05 (spring)
%
%   See also SCMPARSET, LINKPARSET, ANTPARSET

%   Authors: Jari Salo (HUT), Giovanni Del Galdo (TUI), Pekka Ky鰏ti (EBIT), 
%   Daniela Laselva (EBIT), Marko Milojevic (TUI), Christian Schneider (TUI)
%   $Revision: 0.33$  $Date: May 20, 2005$


% Note: all units are in degrees, meters, Hertz (1/s) and meters/second (m/s)




ni=nargin;
if (ni<3 || ni>4)
    error('SCM requires three or four input arguments !')
end



if isfield(linkpar,'BsNumber')==true && isfield(linkpar,'MsNumber')==false
    error('The parameter linkpar.BsNumber has been renamed as linkpar.MsNumber!')
end


% SCM parameters, common to all links
Scenario=scmpar.Scenario;
SampleDensity=scmpar.SampleDensity;
NumTimeSamples=scmpar.NumTimeSamples;
N=scmpar.NumPaths;
M=scmpar.NumSubPathsPerPath;
CenterFrequency=scmpar.CenterFrequency;
ScmOptions=scmpar.ScmOptions;
DelaySamplingInterval=scmpar.DelaySamplingInterval;
PathLossModel=scmpar.PathLossModel;
RandomSeed=scmpar.RandomSeed;
UniformTimeSampling=scmpar.UniformTimeSampling;
PathLossModelUsed=scmpar.PathLossModelUsed;
ShadowingModelUsed=scmpar.ShadowingModelUsed;
AnsiC_core=scmpar.AnsiC_core;
LookUpTable=scmpar.LookUpTable;
FixedPdpUsed = scmpar.FixedPdpUsed;
IntraClusterDsUsed = scmpar.IntraClusterDsUsed;
FixedAnglesUsed = scmpar.FixedAnglesUsed;
DriftShadowFading=scmpar.DriftShadowFading;

% antenna parameters 
BsGainPattern=antpar.BsGainPattern;
BsGainAnglesAz=antpar.BsGainAnglesAz;
BsElementPosition=antpar.BsElementPosition;
MsGainPattern=antpar.MsGainPattern;
MsGainAnglesAz=antpar.MsGainAnglesAz;
MsElementPosition=antpar.MsElementPosition;
InterpFunction=antpar.InterpFunction;
InterpMethod=antpar.InterpMethod;   

% link parameters
MsBsDistance=linkpar.MsBsDistance;
ThetaBs=linkpar.ThetaBs;
ThetaMs=linkpar.ThetaMs;
OmegaMs=linkpar.OmegaMs; 
MsVelocity=linkpar.MsVelocity; 
MsDirection=linkpar.MsDirection;
MsHeight=linkpar.MsHeight; 
BsHeight=linkpar.BsHeight; 
MsNumber=linkpar.MsNumber;
DriftDelaysAngles=scmpar.DriftDelaysAngles;



% check that the scenario is a valid string
if(any(strcmpi(Scenario,{'suburban_macro','urban_macro','urban_micro'}))==0) 
    error('scmpar.Scenario must be ''suburban_macro'', ''urban_macro'', or ''urban_micro''')
end

% check that the ScmOptions is a valid string
if(any(strcmpi(ScmOptions,{'none','polarized','los','urban_canyon'}))==0) 
    error('scmpar.ScmOptions must be ''none'', ''polarized'', ''los'', or ''urban_canyon'' ')
end



% check that SCM options comply with the selected scenario
if (strcmpi(ScmOptions,'urban_canyon')==1 && strcmpi(Scenario,'suburban_macro')==1 )
    scmpar.Scenario='urban_macro';
    warning('MATLAB:UrbanCanyonWrongScenario','Urban canyon option cannot be selected with "suburban_macro" -> scenario changed to "urban_macro"')
end


% check that delay/AoA drifting is not used with ANSI-C core
if (strcmpi(AnsiC_core,'yes')==1 && strcmpi(DriftDelaysAngles,'yes')==1 )
    scmpar.AnsiC_core='no';
    warning('MATLAB:NotSupportedByAnsiC_core','This version does not support drifting of delays/AoAs with ANSI-C core -> changed to scmpar.AnsiC_core=''no''.')
end



% extract the number of links
NumLinks=length(MsBsDistance);

% Check that the struct linkpar has the same number of parameters in
% each of its fields. This is also the number of links/users.
if (    NumLinks ~= length(ThetaBs)     ||... 
        NumLinks ~= length(ThetaMs)     ||...
        NumLinks ~= length(OmegaMs)     ||...
        NumLinks ~= length(MsVelocity)  ||...
        NumLinks ~= length(MsDirection) ||...
        NumLinks ~= length(MsHeight)    ||...
        NumLinks ~= length(BsHeight)    ||...
        NumLinks ~= length(MsNumber))
    error('All fields in input struct LINKPAR must be of same size!')
end



% Set random seeds if given 
if (isempty(RandomSeed)==0)
    rand('state',RandomSeed);
    randn('state',RandomSeed);
end



% determine the size of the MIMO system
% S - number of BS array antenna elements
if (numel(BsGainPattern)==1)
    S=scmpar.NumBsElements;
else
    S=size(BsGainPattern,1);
end

% U - number of MS array antenna elements
if (numel(MsGainPattern)==1)
    U=scmpar.NumMsElements;
else
    U=size(MsGainPattern,1);
end

% check that element displacement vector is of right size
if (length(BsElementPosition)~=S && length(BsElementPosition)~=1)
    error('antpar.BsElementPosition has wrong size!')
end

if (length(MsElementPosition)~=U && length(MsElementPosition)~=1)
    error('antpar.MsElementPosition has wrong size!')
end


% check that LUT size is a power-of-two
% this check is now also in scm_mex_core.c
if (strcmpi(AnsiC_core,'yes')==1)
    if (LookUpTable>0)
        if (2^nextpow2(LookUpTable)-LookUpTable~=0)
            scmpar.LookUpTable=2^nextpow2(LookUpTable);
            warning('MATLAB:LUTSizeChanged',['scmpar.LookUpTable is not a power-of-2: size changed to ' num2str(scmpar.LookUpTable) '.'])
        end
    end
end


% if fixed PDP is used, NumPaths must be six
if (strcmpi(FixedPdpUsed,'yes')==1 && N~=6)
    scmpar.NumPaths=6; N=6;
    warning('MATLAB:NumPathsChangedPdp',['Using fixed PDP, scmpar.NumPaths changed to ' num2str(scmpar.NumPaths) '.'])
elseif (strcmpi(FixedAnglesUsed,'yes')==1 && N~=6)  % if fixed AoD/AoAs are used, NumPaths must be six
    scmpar.NumPaths=6; N=6;
    warning('MATLAB:NumPathsChangedAoa',['Using fixed AoD/AoAs, scmpar.NumPaths changed to ' num2str(scmpar.NumPaths) '.'])
end



% GENERATION OF RANDOM "BULK" PARAMETERS FOR ALL LINKS
switch (ni)
        
    case (3)    % do the basic thing
        
        % check that M=20
        if (M ~= 20)
            scmpar.NumSubPathsPerPath=20; M=20;
            warning('MATLAB:NumSubPathsChanged','NumSubPathsPerPath is not 20! Using NumSubPathsPerPath=20 instead.')
        end
        
    
        % generate bulk parameters for all links
        bulkpar=generate_bulk_par(scmpar,linkpar,antpar);
        

        
        % for interpolation
        aods=bulkpar.aods;
        aoas=bulkpar.aoas;
                
        
    case (4)    % do not generate random link parameters, use initial values
        
        % take bulk parameters from input struct
        bulkpar=initvalues;
        
        % for interpolation
        aods=bulkpar.aods;
        aoas=bulkpar.aoas;
        
        
end     



% ANTENNA FIELD PATTERN INTERPOLATION
% Interpolation is computationally intensive, so avoid it if possible.
% Since SCM does not support elevation, dismiss the elevation dimension (for now)
% NOTE: aods/aoas should be given in degrees.
BsGainIsScalar=0;
MsGainIsScalar=0;
if numel(BsGainPattern)>1
    if (strcmp(ScmOptions,'polarized')==1)
        BsGainPatternInterpolated = zeros([2 S size(aods)]); % [polarizations(2) elements links N(6) M(20)]
        BsGainPatternInterpolated(1,:,:,:,:)=feval(InterpFunction,squeeze(BsGainPattern(:,1,1,:)),BsGainAnglesAz,aods, InterpMethod); % V
        BsGainPatternInterpolated(2,:,:,:,:)=feval(InterpFunction,squeeze(BsGainPattern(:,2,1,:)),BsGainAnglesAz,aods, InterpMethod); % H
        BsGainPatternInterpolated=permute(BsGainPatternInterpolated,[3 2 1 4 5]); % [link rx_element polarization path subpath]
    else
        BsGainPatternInterpolated=feval(InterpFunction,squeeze(BsGainPattern(:,1,1,:)),BsGainAnglesAz,aods, InterpMethod); % V only
        BsGainPatternInterpolated=permute(BsGainPatternInterpolated,[2 1 3 4]);
    end
else    % if BsGainPattern is scalar
    if (strcmp(ScmOptions,'polarized')==1)
        BsGainPatternInterpolated=repmat(BsGainPattern, [NumLinks S 2 N M]);    % [link rx_element polarization path subpath]

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
夜夜嗨av一区二区三区网页 | 亚洲综合男人的天堂| 粉嫩aⅴ一区二区三区四区五区| 欧美精品一区视频| 国产精品一二三区| 中文天堂在线一区| 91麻豆免费看片| 亚洲成av人片在线| 91精品国产色综合久久久蜜香臀| 免费人成网站在线观看欧美高清| 精品国精品国产| 成人免费三级在线| 亚洲在线观看免费| 亚洲精品一区在线观看| 粉嫩一区二区三区在线看| 亚洲欧美另类图片小说| 欧美男男青年gay1069videost | 亚洲天堂免费看| 在线观看视频一区| 麻豆91精品视频| 国产精品蜜臀在线观看| 欧美私人免费视频| 国产一区二区三区免费播放| 日韩美女视频19| 日韩视频一区二区三区在线播放| 国产成人无遮挡在线视频| 又紧又大又爽精品一区二区| 精品国产伦一区二区三区观看体验 | 欧洲日韩一区二区三区| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美国产精品一区二区三区| 精品婷婷伊人一区三区三| 国产乱色国产精品免费视频| 中文字幕一区二区三区不卡在线| 欧美精品久久天天躁| 国产成人免费在线观看| 香港成人在线视频| 国产精品卡一卡二卡三| 欧美一区二区日韩| 色综合天天视频在线观看| 黑人精品欧美一区二区蜜桃| 亚洲一卡二卡三卡四卡五卡| 欧美国产精品中文字幕| 欧美成人猛片aaaaaaa| 在线精品国精品国产尤物884a| 久久激情五月激情| 亚洲韩国精品一区| 亚洲色图视频免费播放| 久久麻豆一区二区| 在线成人av影院| 在线观看91视频| 99久久免费视频.com| 国产精品亚洲а∨天堂免在线| 日韩中文字幕区一区有砖一区 | 婷婷国产在线综合| 国产精品家庭影院| 久久久精品欧美丰满| 91精品国产综合久久香蕉的特点| 色婷婷久久久亚洲一区二区三区| 国产成人午夜99999| 国内精品写真在线观看| 亚洲福利电影网| 亚洲精品v日韩精品| 亚洲欧洲色图综合| 国产精品视频一二| 国产婷婷一区二区| 国产性做久久久久久| 精品国产精品一区二区夜夜嗨| 欧美精品日韩综合在线| 在线中文字幕不卡| 91国产成人在线| 91九色最新地址| 在线观看国产日韩| 欧美专区日韩专区| 欧美视频中文字幕| 欧美久久一区二区| 欧美一区二区大片| 欧美一区二区三区免费视频| 欧美一区二区三区小说| 欧美一二三四区在线| 欧美一区二区在线免费播放| 欧美一区二区网站| 日韩情涩欧美日韩视频| 久久天堂av综合合色蜜桃网| 国产午夜精品一区二区| 日本一二三不卡| 成人免费一区二区三区在线观看| 自拍偷拍欧美精品| 樱花影视一区二区| 水野朝阳av一区二区三区| 日本视频一区二区三区| 麻豆国产精品视频| 国产成人综合亚洲网站| 91在线免费看| 欧美人成免费网站| 亚洲精品在线三区| 中文字幕综合网| 日韩电影免费在线观看网站| 国产在线精品一区二区三区不卡| 国产不卡免费视频| 色综合天天综合色综合av | 8x8x8国产精品| 精品伦理精品一区| 国产精品色哟哟| 亚洲精品成人天堂一二三| 日韩成人精品视频| 国产精品自拍网站| 日本韩国一区二区三区视频| 欧美精选一区二区| 久久精品一区二区三区不卡牛牛 | 国产精品综合在线视频| 91丨porny丨国产入口| 欧美日韩成人综合在线一区二区 | 中文字幕久久午夜不卡| 一区二区视频在线| 久久99精品久久久久久国产越南 | 久久理论电影网| 亚洲乱码日产精品bd| 欧美aaaaa成人免费观看视频| 岛国精品一区二区| 欧美精品在线观看播放| 国产精品免费观看视频| 亚洲成人免费av| 成人av资源在线| 91精品国产福利| 亚洲人成网站影音先锋播放| 国产综合色产在线精品| 欧美午夜寂寞影院| 国产精品五月天| 日本不卡一区二区三区| 99久久久免费精品国产一区二区| 欧美一区二区福利在线| 亚洲综合免费观看高清完整版在线| 国产一区二区三区久久久| 欧美亚洲禁片免费| 中文字幕在线视频一区| 黄网站免费久久| 欧美人与性动xxxx| 最近日韩中文字幕| 国产黄色精品网站| 91精品欧美久久久久久动漫| 亚洲狼人国产精品| 福利一区二区在线| 欧美精品一区二区三区蜜臀| 亚洲第一会所有码转帖| 91麻豆文化传媒在线观看| 国产女人水真多18毛片18精品视频 | 国产伦精品一区二区三区视频青涩 | 欧美猛男超大videosgay| 一区免费观看视频| www.色综合.com| 久久精品无码一区二区三区| 久久99精品久久久久久动态图| 欧美日韩一区视频| 亚洲曰韩产成在线| 色综合久久久久综合99| 中文字幕在线不卡| av一区二区久久| 国产精品久久久久一区二区三区| 国产一区二区三区精品视频| 日韩无一区二区| 麻豆一区二区三| 日韩色视频在线观看| 久久精品国产在热久久| 日韩免费观看2025年上映的电影| 亚洲va欧美va人人爽| 欧美日韩大陆一区二区| 日本成人在线网站| 日韩欧美一区在线| 黄一区二区三区| 国产人妖乱国产精品人妖| 国产成人av电影在线| 中文无字幕一区二区三区| 丰满白嫩尤物一区二区| 亚洲色图视频网站| 欧美日韩一区三区四区| 日本中文在线一区| 精品乱人伦一区二区三区| 国产福利一区在线| 亚洲欧美一区二区久久| 欧美日韩一区二区三区四区| 亚洲bt欧美bt精品| 日韩欧美亚洲国产另类| 国产乱码精品一区二区三区忘忧草 | 亚洲三级免费电影| 日本大香伊一区二区三区| 亚洲一区二区成人在线观看| 欧美日韩高清在线| 麻豆91在线看| 欧美激情综合在线| 91麻豆成人久久精品二区三区| 一区二区三区日韩欧美| 欧美性一二三区| 久热成人在线视频| 中文字幕av一区二区三区免费看| 欧美性猛交xxxx乱大交退制版| 久久国产精品露脸对白| 国产女人18水真多18精品一级做 | 国产福利一区在线观看| 亚洲欧美国产毛片在线|