how to create a complex number: j(number)
2 次查看(过去 30 天)
显示 更早的评论
i want create complex number in my m file code how i can do this : a= j(number)
回答(2 个)
behnam
2012-2-19
1 个评论
Matt Kindig
2012-2-19
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)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!