MATLAB Gaussian Pulse

Gaussian pulse shape description:

The diagram of a Gaussian is a trademark symmetric "ringer bend" shape. The boundary an is the stature of the bend's pinnacle, b is the situation of the focal point of the pinnacle and c (the standard deviation, some of the time called the Gaussian RMS width) controls the width of the "bell".

Gaussian capacities are frequently used to address the likelihood thickness capacity of a typically dispersed irregular variable with anticipated value µ = b and difference σ2 = c2.

Where is gaussian pulse used?

  • Gaussian functions are generally utilized in insights to depict the typical circulations, in signal handling to characterize Gaussian channels, in picture preparing where two-dimensional Gaussians are utilized for Gaussian foggy spots.
  • In science, Gaussian pulse is used to settle heat conditions and dispersion conditions and to characterize the Weierstrass change.

Code in Matlab with explanation in the form of comments:

Fs1 = 70; % frequency for sampling 
t3 = -.6:1 / Fs1 : .6;
xq = 1 / (sqrt ( 2 * pi * 0.01 ) ) * (exp(-t3. ^ 2/ (2 * 0.01) ) ) ;
nfft1 = 1024 ; % FFT length
- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - - 
%taking fft, and we are trying to perform padding with 0’s so that the given length(X1)
% is shifted - - -  - - > nfft1
X1 = fft(xq, nfft1);
%FFT symmetric
X1 = X1(1 : nfft 1 / 2) ;
%magnitude of FFT1 of xq
mx1 = abs(X1 ) ;
% freq vector of the evenly space is
f = (0 : nfft1 / 2 – 1 ) * Fs1 / nfft1;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
figure( 1 ) ;
plot( t3, xq ) ;
% here title is set as “ the Gaussian Pulse Signal generation ”
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 


title(' the Gaussian Pulse Signal generation ' ) ;
xlabel(' Time ( s ) ');
ylabel(' Amplitude- - - - - -  - - >');
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
figure( 2 ) ;
plot(f , mx 1 );
% here title is set as “ the Power Spectrum of Gaussian Pulse ”
title(' the Power Spectrum of Gaussian Pulse' ) ;
xlabel(' the Frequency ( Hz) ' )
ylabel(' the Power');

Output: We obtain two figures as follows.

MATLAB Program for Gaussian Pulse MATLAB Program for Gaussian Pulse



ADVERTISEMENT
ADVERTISEMENT