Get exponential complex from a reel variable

I want to get this complexe variable : exp(-1j*wk*M) where wk*M=6.2714e+09
and I have : exp(-1j*wk*iM)
ans = 1.0000 - 0.0000i
but when I do : exp(-1j*6.2714e+09) :
ans = 0.7843 - 0.6204i
Why do I get wrong result when I use the variable instead of its value in the ?
Thanks a lot!

1 comentario

Nikhil Sapre
Nikhil Sapre el 29 de Jun. de 2021
Hi AC,
I tested in R2020b and R2021a and I see the same results.
What version of MATLAB are you using?

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 29 de Jun. de 2021
and I have : exp(-1j*wk*iM)
Your variable is named M not iM . You might have an iM variable hanging around that has value 0.

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Preguntada:

AC
el 29 de Jun. de 2021

Respondida:

el 29 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by