%% Generate MLS Signal
% Generate an MLS signal that is 2^14-1 samples long and has a level of -5 dB.

L = 2^14-1;
level = -5;
excitation = mls(L,'ExcitationLevel',level);

%
% Visualize the excitation in time and time-frequency. For the time-domain plot, plot only the first 200 samples for visibility. The pattern is constant.

plot(excitation(1:200))

%

spectrogram(excitation,512,0,1024,'yaxis')

%
% Copyright 2018 The MathWorks, Inc.