Site hosted by Angelfire.com: Build your free website today!

linedraw

PURPOSE ^

LINEDRAW draws a line connecting two arbitrary separated points in 2-D.

SYNOPSIS ^

function [lineHandle,xline, yline] = linedraw(x1,y1,x2,y2,lineStyle,nPoint)

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004