fils2filcs.m
PURPOSE:
Convert end point description of filaments fils = [x1,y1,z1,x2,y2,z2]
to center xc= [xc,yc,zc] and delta= [dx,dy,dz]
SYNTAX:
filcs = fils2filcs(fils)
INPUT:
fils = filament matrix defined by end points of filament contining 6 columns
[x1,y1,z1,x2,y2,z2] where 1 is start of filament and 2 is end
Alternatively fils can be a CELL with several filament matrices
OUTPUT:
filcs = filament center and delta: 6 column matrix [xc,yc,zc,dx,dy,dz]
if fils is a cell then so is filcs
NOTE:
Dependencies