%% Generate Uplink RMC Waveform
% Generate a time-domain signal and a 2-D array of the resource elements for 
% a modified A1-1 fixed reference channel.
% 
% Initialize the |frc| configuration structure and change the modulation 
% scheme to |'16QAM'|. Generate the |txWaveform|, |txGrid|, and output the configuration 
% structure. Create a spectrum analyzer object, setting the sampling rate. Plot 
% the waveform.

frc = lteRMCUL('A1-1');
frc.PUSCH.Modulation = '16QAM';
%%
[txWaveform,txGrid,rmcCfgOut] = lteRMCULTool(frc,[1;0;0;1]);
%%
saScope = dsp.SpectrumAnalyzer('SampleRate', rmcCfgOut.SamplingRate);
saScope(txWaveform)

%% 
% Copyright 2012 The MathWorks, Inc.