Code covered by the BSD License  

Highlights from
IQ Baseband Builder

image thumbnail

IQ Baseband Builder



26 Sep 2012 (Updated )

This application allows you to generate IQ baseband signals for the Agilent 33522A, 33522B, 33512B

addWGNoise(yData, EbNo, nsamp,M)
function y = addWGNoise(yData, EbNo, nsamp,M)
%This function adds noise to a baseband QAM signal
%yData --> input symbol data
%EbNo --> Energy per bit to noise power spectral density ratio (Eb/No)in dB
%nsamp --> number of samples per data unit or pulse
%M --> symbol count or M-ary levels

k = log2(M);    %number of bits per symbol
snr = EbNo + 10*log10(k) - 10*log10(nsamp);%calculate SNR 
hChan = comm.AWGNChannel('NoiseMethod', 'Signal to noise ratio (SNR)','SNR',snr);
hChan.SignalPower = (yData' * yData)/ length(yData);
y = step(hChan,yData);

Contact us