Borrar filtros
Borrar filtros

please help write matlab code that plots the following function

1 visualización (últimos 30 días)
someone help plot this with matlab
P(t)= (2/3) * exp( j(4*pi*t + 3*pi/4) )

Respuesta aceptada

Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato el 22 de Mzo. de 2020
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 comentarios
Walter Roberson
Walter Roberson el 25 de Mzo. de 2020
See xlabel() and ylabel() and zlabel() and title()

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Formatting and Annotation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by