In the following example, you should start:
First, three phasors are determined.
% Define three complex numbers by magnitude and phase ph1 = 20*exp(1i*0.25*pi); ph2 = 10*exp(1i*0.7*pi); ph3 = 5*exp(1i*1.2*pi);
Then, using cumsum , a vector is computed containing ph1, ph1+ph2, ph1+ph2+ph3 .
% Step-wise vector sum vecs = cumsum([ph1; ph2; ph3]); vecs = [0; vecs]; % add origin as starting point
Complex numbers are built on the real and imaginary parts.
% Plot figure; plot(real(vecs), imag(vecs), '-+'); xlim([-30 30]); ylim([-30 30]); xlabel('real part'); ylabel('imaginary part'); grid on;
This leads to the following figure: 
source share