MATLAB: How to plot a complex voltage

complexgraphplot

I´ve got 3 complex voltages that I need to plot against time in an interval from 0s to 10s:
Vx = 4.9451 + 2.9920i
Vy = 10.0935 – 9.7970i
Vz = -5.5966 – 0.9360i

Best Answer

Vx = 4.9451 + 2.9920i
Vy = 10.0935 - 9.7970i
Vz = -5.5966 - 0.9360i
V=[Vx Vy Vz]
time=linspace(0,10,3)
subplot(3,1,1)
plot(time,real(V),'or-')
xlabel('time')
ylabel('real')
subplot(3,1,2)
plot(time,imag(V),'og-')
xlabel('time')
ylabel('imag')
subplot(3,1,3)
plot(real(V),imag(V),'ok-')
xlabel('real')
ylabel('imag')