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

📄 randrice.m

📁 详细的cost273工作组信道仿真模型 适合模拟实际无线系统
💻 M
字号:
function a=randrice(Ak,sigma,N)
% function a=randrice(Ak,sigma,N)
% 
% This function creates a Ricean distributed random variable with mean
% value Ak and variance sigma. A set of Nx1 values is computed.
%
%  Copyright (C)2005  Helmut Hofstetter
% 
%  This program is free software; you can redistribute it and/or modify
%  it under the terms of the GNU General Public License as published by
%  the Free Software Foundation; either version 2 of the License, or
%  (at your option) any later version.
% 
%  This program is distributed in the hope that it will be useful,
%  but WITHOUT ANY WARRANTY; without even the implied warranty of
%  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%  GNU General Public License for more details.
% 
%  You should have received a copy of the GNU General Public License
%  along with this program; if not, write to the Free Software
%  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
% 
%----------------------------------------------------------------------%
%                                                                      %
%              Author: Helmut Hofstetter <hofstetter@ftw.at>           %
%             Created: 25/05/2005 by HH                                %
%   Last modification: 18/08/2005 by HH                                %
%        Organization: Telecommunications Research Center Vienna,      %
%                      Tech Gate Vienna,                               %
%                      Donau-City Str. 1 / 3rd floor,                  %
%                      A-1220 Vienna, Austria.                         %
%             Project: FTW C9 "MIMO UMTS for future packet services"   %
%    Deliverable Type: This M-file is public available                 %
%                 URL: http://www.ftw.at/cost273/                      %
%         Source Code: MATLAB v7.0 SP2                                 %
%             History:                                                 %
%             Created: 1.00, 25/05/2005 by HH (ftw)                    %
%                                                                      %
%----------------------------------------------------------------------%

a=sqrt(abs(randn(N,1)*sigma+j*randn(N,1)*sigma+Ak^2/2));
    
    

⌨️ 快捷键说明

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