function [] = plotv(startv, endv) if nargin==2 quiver(startv(1), startv(2), endv(1), endv(2), 0); else quiver(0,0,startv(1),startv(2), 0); end end