% plot the line through two vectors x0 and x1
close all

% two given vectors
x0 = [3,0];
x1 = [1,1];
PlotVector(x0,'b'); 
PlotVector(x1,'b'); 
pause;

for t = [0.1:.1:10];
    % preserve color of x1
    if t ~= 1;
        v = (1-t)*x0+t*x1;
        PlotVector(v,'g'); axis([-3 3 -3 3]); shg
        hold on;
        plot(v(1),v(2),'r*');
        title(['t = ',num2str(t)]);
    end
    
    drawnow;
    pause; 
end