採用された回答

Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2020 年 3 月 22 日

0 投票

You have a complex function, so you should define what exactly you want to plot of this function. Some alternatives are the followings (note that the imaginary number in Matlab is 1j):
t = 0:0.1:10;
P= (2/3) * exp( 1j*(4*pi*t + 3*pi/4) );
plot(t,real(P)), hold on
plot(t,imag(P))
plot(t,abs(P))
legend({'Real','Imag','Absolute'})

5 件のコメント

Bakang Keoletile
Bakang Keoletile 2020 年 3 月 22 日
is this answer complete?
Walter Roberson
Walter Roberson 2020 年 3 月 23 日
Yes.
Bakang Keoletile
Bakang Keoletile 2020 年 3 月 23 日
please help label axes
Walter Roberson
Walter Roberson 2020 年 3 月 25 日
See xlabel() and ylabel() and zlabel() and title()
Omran
Omran 2022 年 10 月 7 日
sin(x)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by