% plot_DSSSPulse - plot a DS/SS Pulse

fsT = 128;
Nseq =16;
fsTc = fsT/Nseq;

H=hadamard( Nseq );

tt = ( 0 : fsT-1 ) / fsT;
plot(tt, DSSSPulse( H(12,:), fsTc ), tt, RectPulse( fsT ), '--');
grid
axis( [0 1 -1.1 1.1])
xlabel('Time/T')
legend('DS/SS Pulse','Narrowband Pulse','Location','Southwest')

%% Store name of script for automated figure generation
ScriptName = mfilename;