imat_elem/remove


Purpose

Remove elements.

Syntax

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

Description

REMOVE removes elements from the IMAT_ELEM object ELEM. If ID is numeric, it contains the element ID(s) to remove. If it is logical, it contains the indices into ELEM of the element(s) to remove.

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.remove(1:2);
>> elem=remove(elem,elem.id==1);

 

See Also

imat_elem/add, imat_elem/keep