matlab command for complex exponential function.

조회 수: 31 (최근 30일)
bhavna
bhavna 2014년 6월 17일
댓글: James Tursa 2014년 6월 18일
how to write complex exponential function in matlab

채택된 답변

James Tursa
James Tursa 2014년 6월 17일
The exp function works for complex inputs:
>> z = 1 + 2i
z =
1.0000 + 2.0000i
>> exp(z)
ans =
-1.1312 + 2.4717i
If you want something else you will need to be more specific with your question.
  댓글 수: 2
bhavna
bhavna 2014년 6월 17일
sir i have an array with first column as the magnitude and second column as the argument(in radian) in a text file(that i have loaded). I want to combine them as ({mag).*exp(j(arg))} How can i get this?
James Tursa
James Tursa 2014년 6월 18일
x = 2 column array of magnitude and argument
x(:,1).*exp(1j*x(:,2))

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by