Combine two filters with an OR operation.
z1 | z2
or(z1,z2)
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.
>> 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
>>