Keep elements.
elem=keep(elem,1:10)
elem=elem.keep(1:10)
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.
>> 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);