Problem 1 Using MatLab or similar plotting routine show and
Problem 1. Using MatLab or similar plotting routine show and explain (you have to look at the plots) how a sine wave and a cosine wave differ in their ability to produce HHG. Remember that a cosine wave has a maximum when the phase is zero and a sine wave has a maximum at phase 90 degrees. Note assume the cosine and sine waves have a form of E1=cos(w)*exp(-w^2/50) or E2 = sin (w)*exp(-w^2/50). Let w range from -5 to 5.
Solution
w=-5:0.001:5
E1=cos(w).*exp(-w.^2/50)
E2 = sin (w).*exp(-w.^2/50)
subplot(1,2,1)
plot(E1)
subplot(1,2,2)
plot(E2)
