how to create a complex number: j(number)
Mostrar comentarios más antiguos
i want create complex number in my m file code how i can do this : a= j(number)
1 comentario
Jiro Doke
el 19 de Feb. de 2012
Changing the title to make it more descriptive.
Respuestas (2)
Walter Roberson
el 19 de Feb. de 2012
a = 3 + 5j;
or
a = 3 + 5*j;
or
a = complex(3,5);
behnam
el 19 de Feb. de 2012
1 comentario
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)
Categorías
Más información sobre Data Types 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!