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
Jiro Doke
2012년 2월 19일
Changing the title to make it more descriptive.
답변 (2개)
Walter Roberson
2012년 2월 19일
a = 3 + 5j;
or
a = 3 + 5*j;
or
a = complex(3,5);
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)
카테고리
도움말 센터 및 File Exchange에서 Data Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!