I am trying to write the equation of electric field of a Gaussian pulse of light to do some MATLAB analysis and other analysis. What I want is an electric field $E(y,t)$ of a Gaussian pulse traveling with a cosine function along $y$. This is the equation I have:
$$ E(y,t) = \cos(\omega t-ky)\exp[(-(t/tp)^2) + j\omega t] $$
In addition, in this situation, I imagine the Gaussian function will produce the envelope with Gaussian width and time tp and the cosine function will be the carrier signal. Are my assumptions correct?