Home > General-Functions > SUGR > Line_2D > sugr_select_Line_2D.m

sugr_select_Line_2D

PURPOSE ^

% Select n-th line form list of lines

SYNOPSIS ^

function l = sugr_select_Line_2D(ls,n)

DESCRIPTION ^

% Select n-th line form list of lines

 l = sugr_select_Line_2D(ls,n)

 * ls   2D lines, array of structs {l.h(N,:),l.Crr(N,:,:)}
 * n    index of line to be selected
 
 * l    selected 2D line, struct {l.h,l.Crr}
 Wolfgang Förstner 2/2011
 wfoerstn@uni-bonn.de 

 See also sugr_select_Point_2D

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %% Select n-th line form list of lines
0002 %
0003 % l = sugr_select_Line_2D(ls,n)
0004 %
0005 % * ls   2D lines, array of structs {l.h(N,:),l.Crr(N,:,:)}
0006 % * n    index of line to be selected
0007 %
0008 % * l    selected 2D line, struct {l.h,l.Crr}
0009 % Wolfgang Förstner 2/2011
0010 % wfoerstn@uni-bonn.de
0011 %
0012 % See also sugr_select_Point_2D
0013 
0014 function l = sugr_select_Line_2D(ls,n)
0015 
0016 l.h    = ls.h(n,:)';
0017 l.Crr  = squeeze(ls.Crr(n,:,:));
0018 l.Jr   = null(l.h');
0019 l.type = 2;
0020

Generated on Sat 21-Jul-2018 20:56:10 by m2html © 2005