please help write matlab code that plots the following function

조회 수: 4 (최근 30일)
someone help plot this with matlab
P(t)= (2/3) * exp( j(4*pi*t + 3*pi/4) )

채택된 답변

Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2020년 3월 22일
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
Walter Roberson
Walter Roberson 2020년 3월 25일
See xlabel() and ylabel() and zlabel() and title()

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Labels and Styling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by