how to generate a chirp pulse and obtain its phase
37 views (last 30 days)
I would like to generate figure showing the a chirp pulse with the Gaussian envelope ( in the code) and to obtain its phase. I have execute the below code but it does not work. Because if it is correct, the spectrum should have the same shape as shown in the attached figure.
So does anyone have any idea on that?
This is the code I use:
c=3*10^8; %the speed of light
Fs=2.35*10^16; % Sampling frequency = 10*50Hz
Ts=1/Fs; % Sampling interval
t=-0.8*10^-13:Ts:0.8*10^-13; % Sampling time instants [s]
tau=40*fs; %%pulse duration
E_field=exp(-2*log(2)*((t-t0)/tau).^2)*phi; % The gaussian envelope
%% Plot the spectrum
axis([-inf,inf , -inf,inf])
title('spectrum without carrier frequency');