imat_cs/keep


Purpose

Keep coordinate systems.

Syntax

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

Description

KEEP returns an IMAT_CS object containing the coordinate systems specified in ID.

If ID is numeric, KEEP keeps the coordinate systems in ID that exist in CS in the order specified in ID. KEEP will issue a warning if there are coordinate systems in ID that do not exist in CS.

If ID is logical, the coordinate systems matching the ID mask will be kept.

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