ptsn_to_fil.m
PURPOSE:
convert a vector of points defined by xpt = [xpt,ypt,zpt]
to filaments xfil [x1,y1,z1,x2,y2,z2] from point to point.
this interpolates between points to to add n filaments for each point
This creats one less filament than the number of points
SYNTAX:
xfil= ptsn_to_fil(xpt,n)
INPUT: [default]
xpt = coordinates of each point in 3-space. Contains 3 columns: [x,y,z]
n = number of filaments per point [ones(length(xpt),1)]
scalar or column vector same length as xpt
OUTPUT:
xfil = filament constructed beteen points contining 6 columns
[x1,y1,z1,x2,y2,z2] where 1 is start of filament and 2 is end
Dependencies