startpoint=[1,2,3];%向量起点endpoint=[4,7,10];%向量终点point=[startpoint;endpoint];figure;plot3(point(:,1),point(:,2),point(:,3),'--bo');%绘图