Writing the equation is rather straightforward. You just need to decide what variable names you want to use. Here's one way.
z = P*exp(phi*1i)*exp(w*t*1i) + N*exp(phi*1i)*exp(-w*t*1i)
I suggest going through MATLAB Onramp will enable you to not only write the equation yourself, but actually use it to calculate values for z.