awgnbase.m

来自「一个教你如何用matlab写mimo系统的程序」· M 代码 · 共 38 行

M
38
字号
function [received]=awgnbase(trans,EbN0)%   [received]=awgnbase(trans,EbN0)%%	Output:%	received   - Received baseband signal%   %   trans      - Transmitted baseband signal%   EbN0       - Eb/N0 %   %   Short Theoretical Background for the Function:%%   AWGN baseband channel. Adds complex-valued additive %   white gaussian noise.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%% Function part of simulation for Space-Time%%% coding project, group Grey-2001.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   Author:     Fredrik Hansson%   Date:       2001-03-28%   Version:    1.0%   Revision (Name & Date):%   1.1         FH 2001-04-01  EbN0 in normal scale (not dB!!!) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%SNR = 2*(10^(EbN0/10));pnorm = 1;               % normalized pulsshape?sigma2 = pnorm * 1/(2*EbN0); % noise variancen = sqrt(sigma2/2) * randn(size(trans)) +...    j * sqrt(sigma2/2) * randn(size(trans)) ;received = trans + n;

⌨️ 快捷键说明

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