%% Generate BLE Waveform Using Default Settings
% Create an input message column vector of length 2056 containing random binary values. Set the symbol rate to default value.

message = randi([0 1],2056,1);
symbolRate = 1e6;

% Generate the BLE waveform.

waveform = bleWaveformGenerator(message);

% Create a dsp.SpectrumAnalyzer System object to display the frequency spectrum of the generated BLE waveform. Set the sample rate of the frequency spectrum.

scope = dsp.SpectrumAnalyzer;
scope.SampleRate = 8*symbolRate;

% Plot the BLE waveform.

scope(waveform);

% Copyright 2018 The MathWorks, Inc.