# this script shows how to create a custom time signal ##################################################### # specify signal t = linspace(0,150000e-15, 40000); lc = 1430.94e-9; # wavelength w_center = (c/lc)*2*pi; delta_t = 30e-15; offset1 = 100e-15; # define amplitude and phase amp = (t < offset1)*exp(-0.5*(t-offset1)^2/delta_t^2) + (t >=offset1); phase = -w_center*t; # set the signal for the desired source setsourcesignal("pump",t,amp,phase,c/lc,0);