imat_tl/keep


Purpose

Keep tracelines.

Syntax

tl=keep(tl,1:10)
tl=tl.keep(1:10)

Description

KEEP will keep tracelines from the IMAT_TL object TL. If ID is numeric, it must contain the traceline ID(s) to keep. If it is logical, it contains the indices into TL of the traceline(s) to keep.

Examples

>> fem=readunv('fem_file.unv')

fem =

IMAT_FEM Finite Element Model
         1 coordinate system
        30 nodes
        10 elements
         3 tracelines

>> tl=fem.tl;
>> tl=tl.keep(1:2);
>> tl=keep(tl,tl.id==1);

 

See Also

imat_tl/add, imat_tl/remove