%% UMTS Downlink Waveform Generation
% Initialize a |'QPSK'|, |'H-Set1'| FRC reference channel and generate the UMTS 
% waveform that corresponds to these settings.
% 
% Generate the configuration structure, |frcStruct|.

rc = 'H-Set1';
modulation = 'QPSK';
frcStruct = umtsDownlinkReferenceChannels(rc, modulation);
%% 
% Generate the desired waveform using |frcStruct| as the input to the waveform 
% generation function. Create a spectrum analyzer object sampling at |chiprate| 
% x |OversamplingRatio|. Plot the waveform.
%%
waveform = umtsDownlinkWaveformGenerator(frcStruct);
saScope = dsp.SpectrumAnalyzer('SampleRate', 3.84e6*frcStruct.OversamplingRatio);
saScope(waveform);

%% 
% Copyright 2012 The MathWorks, Inc.