📄 eqber_siggen.m
字号:
%% EQBER_SIGGEN - Generate a noisy, channel-filtered signal to be equalized% This script generates a noisy, channel-filtered signal to be processed by a% linear equalizer, a DFE equalizer, and an MLSE equalizer. The channel state% information is retained between blocks of signal data. The script also sets% the state of the data and noise generators for its first run, then allows the% states to update automatically.% Copyright 1996-2004 The MathWorks, Inc.% $Revision: 1.1.4.1 $ $Date: 2004/06/30 23:03:11 $% Generate a PSK signalif (firstRun) msg = randint(nBits, 1, M, dataState);else msg = randint(nBits, 1, M);endtxSig = pskmod(msg, M);% Pass the signal through the channel[filtSig, chanState] = filter(chnl, 1, txSig, chanState);% Add AWGN to the signalSNR = EbNo(EbNoIdx) + 10*log10(Rb/Fs);if (firstRun) noisySig = awgn(filtSig, SNR, 'measured', noiseState); firstRun = false;else noisySig = awgn(filtSig, SNR, 'measured');end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -