how to create a complex number: j(number)

i want create complex number in my m file code how i can do this : a= j(number)

1 comentario

Jiro Doke
Jiro Doke el 19 de Feb. de 2012
Changing the title to make it more descriptive.

Iniciar sesión para comentar.

Respuestas (2)

behnam
behnam el 19 de Feb. de 2012
for example :
a=input('enter a');
t=j(a/20);
this is true ?
or t=i(a/20);

1 comentario

Matt Kindig
Matt Kindig el 19 de Feb. de 2012
Neither is correct. Both j and i are constants (sqrt(-1)), not functions, so that are not called like this. Instead:
a=input('enter a');
t=j*(a/20)

Iniciar sesión para comentar.

Categorías

Más información sobre Data Types en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Feb. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by