Code covered by the BSD License
 IQ_Baseband_Builder.m
 addWGNoise(yData, EbNo, n...This function adds noise to a baseband QAM signal
 ampImbalance(Ia, x)
this function adds an amplitude imbalence between I and Q signals
 customEyeDiag(axesHndle, ...Customized function to produce Eye Diagram data that can then be used to
 dcOffset(Idc, Qdc, x)
this function adds a DC amplitude offset to either I or Q data signal
 gaussianFilter.m
 performFFT(readings,sRate)
This function performs an FFT using the input arguments measurement
 phaseImbalance(Ip, x)
this function adds a phase imbalence to IQ data signals
 raisedCosineFilter(yData,...this function applies raised cosine filtering or pulse shaping to the
 randomBinaryError(yData, ...This function adds random binary error to a baseband QAM signal
 rectFilter(yData, nSamples)
this function applies rectangular filtering or pulse shaping to the
 rootRaisedCosineFilter(yD...this function applies root raised cosine filtering or pulse shaping to the
 scaleData(data,sFactor)
this function allows you to scale data
 sendTo33522(I,Q,IP)
This function connects to a 33522 and uploads an I and Q baseband signal

View all files
IQ Baseband Builder
by
Neil Forcier
26 Sep 2012
(Updated
08 Oct 2012)
This application allows you to generate IQ baseband signals for the Agilent 33522A, 33522B, 33512B

performFFT(readings,sRate)

function [x y] = performFFT(readings,sRate)
%This function performs an FFT using the input arguments measurement
%readings and sample rate. It returns two arrays for the x and y axis of an
%FFT plot. It only returns the real numbers of the FFT in dBv. Only one
%half of the FFT is returned. The mirror image is not returned
m = length(readings); % Window length
n = pow2(nextpow2(m)); % calculate fft length
y = fft(readings,n); % perform fft on readings
x = (0:((n1)/2))*(sRate/n); % Frequency range, divide by 2 to show half result
y = db(abs(y)); %get rid of imaginary components and just get amplitude and convert to dBv
y = y(1:(n/2)); %just get half of the readings, don't want mirror image readings


Contact us