⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 init_rice.m

📁 这是一个关于ofdm在802.11协议下的源码
💻 M
字号:
function y = init_Rice(NumberOfTxAntennas, spacing_Tx_norm, AoD_LOS_Tx_rad, ...
                       NumberOfRxAntennas, spacing_Rx_norm, AoA_LOS_Rx_rad)

% function y = init_Rice(NumberOfTxAntennas, spacing_Tx_norm, AoD_LOS_Tx_rad, ...
%                        NumberOfRxAntennas, spacing_Rx_norm, AoA_LOS_Rx_rad)
%
% Computes the Rice steering matrix as described in Appendix B of
% 3GPP document R1-01-1179.
%
% Inputs
%
% * Variable NumberOfTxAntennas, number of antenna elements of
%   the Uniform Linear Array (ULA) at Tx
% * Variable spacing_Tx_norm, normalized spacing of the antenna elements of
%   the ULA at Tx (in wavelengths)
% * Variable AoD_LOS_Tx_rad, angle of departure of the LOS component at Tx
% * Variable NumberOfRxAntennas, number of antenna elements of the ULA
%   at Rx
% * Variable spacing_Rx_norm, normalized spacing of the antenna elements of
%   the ULA at Rx (in wavelengths)
% * Variable AoA_LOS_Rx_rad, angle of arrival of the LOS component at Rx
%
% Output
%
% A 2-D matrix of size NumberOfRxAntennas x NumberOfTxAntennas whose
% elements are the product of the phasors related to the elements of
% two ULAs, one at Tx and one at Rx, under incidence angles AoD_LOS_Tx_rad
% and AoA_LOS_Rx_rad respectively.
%
% Revision history
%
% November 2003   - Revision to support LOS/NLOS scenario of
%                   IEEE 802.11-03/940r1 in IEEE_802_11_Cases.m
%                   (Removal of weighting by K factors)
%                   ( Bas Dijkstra )
% October 2003    - Bug fix: spacings were handled as unnormalised
%                   despite they were transfered as normalised in
%                   the parameter call. Thanks to Qinfang Sun,
%                   Atheros (United States of America) for reporting
%                   the bug
%                   ( Bas Dijkstra )
% February 2002   - Creation
%                   ( Laurent Schumacher )
%
%
% STANDARD DISCLAIMER
%
% The Computer Science Institute of the University of Namur (hereafter
% "FUNDP-INFO") is furnishing this item "as is". FUNDP-INFO does not
% provide any warranty of the item whatsoever, whether express,
% implied, or statutory, including, but not limited to, any warranty
% of merchantability or fitness for a particular purpose or any
% warranty that the contents of the item will be error-free.
%
% In no respect shall FUNDP-INFO incur any liability for any damages,
% including, but not limited to, direct, indirect, special, or
% consequential damages arising out of, resulting from, or any way
% connected to the use of the item, whether or not based upon
% warranty, contract, tort, or otherwise; whether or not injury was
% sustained by persons or property or otherwise; and whether or not
% loss was sustained from, or arose out of, the results of, the
% item, or any services that may be provided by FUNDP-INFO.
%
% (c) Laurent Schumacher, FUNDP-INFO - November 2003

y = zeros(NumberOfRxAntennas, NumberOfTxAntennas);

step_Tx   = exp(j*2*pi*spacing_Tx_norm*sin(AoD_LOS_Tx_rad));
vector_Tx = step_Tx.^(0:NumberOfTxAntennas-1);
step_Rx   = exp(j*2*pi*spacing_Rx_norm*sin(AoA_LOS_Rx_rad));
vector_Rx = step_Rx.^((0:NumberOfRxAntennas-1).');

y = vector_Rx * vector_Tx;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -