matlab command for complex exponential function.

26 visualizaciones (últimos 30 días)
bhavna
bhavna el 17 de Jun. de 2014
Comentada: James Tursa el 18 de Jun. de 2014
how to write complex exponential function in matlab

Respuesta aceptada

James Tursa
James Tursa el 17 de Jun. de 2014
The exp function works for complex inputs:
>> z = 1 + 2i
z =
1.0000 + 2.0000i
>> exp(z)
ans =
-1.1312 + 2.4717i
If you want something else you will need to be more specific with your question.
  2 comentarios
bhavna
bhavna el 17 de Jun. de 2014
sir i have an array with first column as the magnitude and second column as the argument(in radian) in a text file(that i have loaded). I want to combine them as ({mag).*exp(j(arg))} How can i get this?
James Tursa
James Tursa el 18 de Jun. de 2014
x = 2 column array of magnitude and argument
x(:,1).*exp(1j*x(:,2))

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by