I am plotting optical Gaussian pulse. I have written the following code but not getting answer

14 views (last 30 days)
P0_dBm = -5; % in dBm P0_watt = 10^((P0_dBm-30)/10); % in watt FWHM = 0.4*1e-9; %in nanometer sigma = FWHM/(2*sqrt(2*log(2))); mu = 0; Amp = sqrt(P0_watt); x = -10:0.1:10; G_pulse =(1/sqrt(2*pi*(sigma)^2))*exp(-(x-mu).^2./(2*(sigma)^2));%%gaussian pulse pulse= G_pulse/max(G_pulse); plot(x,pulse);

Answers (0)

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!