FEATool  v1.7
Finite Element Analysis Toolbox
 All Files Functions Pages
selcells.m File Reference


SELCELLS Select cells from expression.

[ CIND ] = SELCELLS( SIN, S_EXPR ) Returns index to cells in selection expression.

Input       Value/(Size)           Description
sin         struct                 Grid or problem struct with
                                   p, c (and s) fields
s_expr      string                 Cell selection string expression
Output      Value/(Size)           Description
cind        array                  Array with indicies to cells which cell
                                   vertices satisfy the selection expression
Given a problem struct fea, select cells between coordinates 0.2<x<0.5
  cind = selcells( fea, <tt>(x>0.2).*(x<0.5)</tt> );
Required fields of sin: