Convert a Complex Number to exponential real
Mostrar comentarios más antiguos
Hi
I am looking for help to calculate value of a complex number say x = 2 +1j*5 using exponential function
Thanks you
Respuesta aceptada
Más respuestas (1)
dpb
el 16 de Jun. de 2021
MATLAB has builtin functions abs (or hypot()) and angle() for the above explicit implementations...
>> x=complex(2,5);
>> cmplx2exp=@(x) deal(abs(x),angle(x));
>> [r,theta]=cmplx2exp(x)
r =
5.3852
theta =
1.1903
>>
3 comentarios
Life is Wonderful
el 16 de Jun. de 2021
Editada: Life is Wonderful
el 17 de Jun. de 2021
Life is Wonderful
el 17 de Jun. de 2021
Editada: Life is Wonderful
el 17 de Jun. de 2021
Life is Wonderful
el 17 de Jun. de 2021
Editada: Life is Wonderful
el 17 de Jun. de 2021
Categorías
Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!