imat_filt/imat_filt


Purpose

Create an imat_filt object which can be used to select elements of an imat_fn.

Syntax

z=imat_filt( attribute, relation, value )
z=imat_filt( { attrib1, rel1, val1 ; attrib2, rel2, val2 ; ... } )

Description

This function, the IMAT filter constructor, creates a function filter (imat_filt object) from one or more criteria.

An imat_filt variable consists of one or more criteria, each composed of an attribute, a relation, and a value.

The attribute of a criterion can be the name of any valid data attribute for an imat_fn, with the exception of Abscissa and Ordinate. The relation of a criterion can be any any of the following:

Relation Criterion is satisfied if...
'==' or '=' attribute is equal to the specified value
'~=' or '!=' attribute is not equal to the specified value
'>' attribute is greater than the specified value
'>=' attribute is greater than or equal to the specified value
'<' attribute is less than the specified value
'<=' attribute is less than or equal to the specified value

 

The last four relations are applicable only to numeric data attributes.

The value of a criterion should be a scalar (for numeric data attributes) or a string (for string attributes) suitable for the data attribute. String matching is case insensitive. Two special features should be noted:

The first syntax creates an imat_filt with a single criterion. The second syntax (with a single Nx3 cell array) creates an imat_filt with multiple criteria, all of which must be satisfied.

To create more complicated filters, combine simple filters using and, or, and not logical operators.

Examples

>> imat_filt('AbscissaSpacing','==','Even');
>> imat_filt('AbscissaMin','>',0);
>> imat_filt('ResponseCoord','=',{'1x','2y-'})

See Also

imat_filt/and, imat_filt/or, imat_filt/not, imat_filt/in_filter

User's Guide