matlab command for complex exponential function.

27 次查看(过去 30 天)
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