LINEDRAW draws a line connecting two arbitrary separated points in 2-D. Input parameters x1 Abscissa of one of given points y1 Ordinate of one of given points x2 Abscissa of the other given points y2 Ordinate of the other given points lineStyle Line style nPoint Number of points along the line Output parameters lineHandle Handle of line plot xline Abscissa of line data yline Ordinate of line data Usage Examples: linedraw(-5,0,5,0); linedraw (0,-5,0,5,'c-') h1 = linedraw(-3,2,4,-1); set(h1,'LineWidth',2,'color',[1 0 1]); See also LINE