exp
For each element of x, returns e^x.
Syntax
R = exp(x)
Inputs
- x
- Type: double | complex
Outputs
- R
- The returned values.
Examples
Scalar input:
R = exp(1)
R = 2.71828
Matrix input:
R = exp([1,-2,3])
R = [ 2.71828 0.135335 20.0855 ]