Examples of how to set-up a LaserPulse object
Contents
New pulse in time domain
t = linspace(0, 10, 1000);
Et = exp(-(t-5).^2) .* exp(-2i*pi*t);
p1 = LaserPulse(t, 'fs', Et);
p1.plot();
New pulse in frequency domain as complex field
f = linspace(0, 1, 1000);
Ef = exp(-(f-0.5).^2/(0.1)^2) .* exp(1i* 100*(f-0.5).^2);
p2 = LaserPulse(f, 'PHz', Ef);
p2.plot();
New pulse in frequency domain as amplitude/phase pair
f = linspace(0, 10, 1000);
Af = exp(-(f-0.5).^2/(0.1)^2);
phi = 1000*(f-0.5).^3;
p2 = LaserPulse(f, 'PHz', Af, phi);
p2.plot();