Complex number with exponential

I am trying to solve this equation however matlab isn't returning any solution. The equation is as follow:
Y=2/(exp(Ci)+exp(-Ci)) where C is constant and i is the imaginary number
I tried using the complex function but it doesn't give correct answer when combined with exp.

3 个评论

Solve the equation for what?
Just find the value of Y
Y = 2./(exp(C*1i)+exp(-C*1i))
In vectorized form.
Or
Y = 1./cosh(C)

请先登录,再进行评论。

回答(1 个)

类别

帮助中心File Exchange 中查找有关 Mathematics 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by