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)

回答(2 个)

for example :
a=input('enter a');
t=j(a/20);
this is true ?
or t=i(a/20);

1 个评论

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)

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Data Types 的更多信息

提问:

2012-2-19

Community Treasure Hunt

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

Start Hunting!

Translated by