please help write matlab code that plots the following function

1 次查看(过去 30 天)
someone help plot this with matlab
P(t)= (2/3) * exp( j(4*pi*t + 3*pi/4) )

采纳的回答

Thiago Henrique Gomes Lobato
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 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Labels and Styling 的更多信息

Translated by