matlab exponential code example Example: exponential matlab Y = exp(X) For complex elements z = x + iy exp(z) will return e^x(cos(y)+isin(y))