%% Generate Test Model Waveform
% This example shows how to generate a test model waveform, a time-domain (post-OFDM modulation) signal for a single antenna port and 10 subframes.
% Specify, as a string, the test model number. In this example, generate test model 1.1. Test model 1.1 and other test models are defined in TS 36.141 [1], Section 6.

tm = '1.1';

% Valid test model values are '1.1', '1.2', '2', '3.1', '3.2', and '3.3'.
%
% Specify, as a string, the channel bandwidth. Select a non-standard bandwidth of 9 RB.

bw = '9RB';

% Valid bandwidth values are '1.4MHz', '3MHz', '5MHz', '10MHz', '15MHz', '20MHz', '9RB', '11RB', '27RB', '45RB', '64RB', and '91RB'.
%
% Generate the test model waveform.

[timeDomainSig,grid] = lteTestModelTool(tm,bw);

% The channel model number and the bandwidth determine the physical channel and signal parameters, as specified in TS 36.141 [1]. The generated waveform, timeDomainSig, is a time-domain signal that has undergone OFDM modulation, cyclic prefix insertion, and windowing. The second output, grid, is a 2-dimensional array representing the resource grid spanning 10 subframes.
% Copyright 2012 The MathWorks, Inc.