imat_filt/and


Purpose

Combine two filters with an AND operation.

Syntax

z1 & z2

and(z1,z2)

Description

When applied to imat_filt objects, the AND function creates a new imat_filt object which selects only those records that satisfy both 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', '=', 'Frequency Response Function');
>> z2=imat_filt('responsecoord', '=', '1x*');
>> f{z1}

ans =

4x1 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

>> f{z2}

ans =

2x1 IMAT Function with the following attributes:

Record Name                 FunctionType     AbscissaSpacing  NumberElements
--------------------------- ---------------- ---------------- ----------------
1_(1X+,1X+)                 Frequency Respon Even             1601
2_(1X+,1X+)                 Auto Spectrum    Even             1601
>> f{z1&z2}

ans =

IMAT Function with the following attributes:

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

>>

See Also

imat_filt/imat_filt, imat_filt/or, imat_filt/not