imat_elem/keep


Purpose

Keep elements.

Syntax

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

Description

KEEP will keep elements from the IMAT_ELEM object ELEM. If ID is numeric, it must contain the element ID(s) to keep. If it is logical, it contains the indices into ELEM of the element(s) to keep.

Examples

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

fem =

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

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

 

See Also

imat_elem/add, imat_elem/remove