%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Gaussian pulse
% Carlos J. Cela, Jan 2012
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear all
close all

% Gaussian pulse parameters
t0 = 100;     % Center of pulse
spread = 10;  % Width of pulse

for t = 1:200
  pulse(t) = exp(-0.5*((t0-t)/spread)^2);
end

% Plot 
plot(1:200, pulse,'r','linewidth',2);
xlabel('Time [# time steps]');
ylabel('Amplitude [V/m]');
grid on;





