imat_filt/or


Purpose

Combine two filters with an OR operation.

Syntax

z1 | z2

or(z1,z2)

Description

When applied to imat_filt objects, the OR function creates a new imat_filt object which selects records that satisfy either of the two filters.

Examples

>> f

f =

5x1 IMAT Function with the following attributes:

Record Name                 FunctionType     AbscissaSpacing  NumberElements
--------------------------- ---------------- ---------------- ----------------
1_(1X+,1X+)                 Frequency Respon Even             1601
2_(1X+,2Y+)                 Frequency Respon Even             1601
3_(1X+,2Z+)                 Frequency Respon Even             1601
4_(1X+,3X+)                 Frequency Respon Even             1601
5_(1X+,1X+)                 Auto Spectrum    Even             1601

>> z1=imat_filt('functiontype', '=', 'Auto Spectrum');
>> z2=imat_filt('responsecoord', '=', '3x*');
>> f{z1}

ans =

IMAT Function with the following attributes:

Record Name                 FunctionType     AbscissaSpacing  NumberElements
--------------------------- ---------------- ---------------- ----------------
1_(1X+,1X+)                 Auto Spectrum    Even             1601

>> f{z2}

ans =

IMAT Function with the following attributes:

Record Name                 FunctionType     AbscissaSpacing  NumberElements
--------------------------- ---------------- ---------------- ----------------
1_(1X+,3X+)                 Frequency Respon Even             1601

>> f{z1|z2}

ans =

2x1 IMAT Function with the following attributes:

Record Name                 FunctionType     AbscissaSpacing  NumberElements
--------------------------- ---------------- ---------------- ----------------
1_(1X+,3X+)                 Frequency Respon Even             1601
2_(1X+,1X+)                 Auto Spectrum    Even             1601

>>

See Also

imat_filt/imat_filt, imat_filt/and, imat_filt/not