?? awgnbase.m
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -