matlab command for complex exponential function.

17 ビュー (過去 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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by