imat_node/keep


Purpose

Keep nodes.

Syntax

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

Description

KEEP returns an IMAT_NODE object containing the nodes specified in ID.

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

If ID is logical, the nodes 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

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

 

See Also

imat_node/add, imat_node/remove