imat_cs/keep


Purpose

Keep coordinate systems.

Syntax

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

Description

KEEP will keep coordinate systems from the IMAT_CS object CS. If ID is numeric, it must contain the coordinate system ID(s) to keep. If it is logical, it contains the indices into CS of the coordinate system(s) to keep.

Examples

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

fem =

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

>> cs=fem.cs;
>> cs=cs.keep(1:3);
>> cs=keep(cs,node.id==3);

 

See Also

imat_cs/add, imat_cs/remove