| Filter Design Toolbox | ![]() |
Test quantized filters for purely real coefficients
Syntax
Description
r = isreal(hq)
returns r = 1 (or true) if all reference filter coefficients for the quantized filter hq are real, and returns r = 0 (or false) otherwise.
isreal(hq) returns 1 if all filter coefficients in quantized filter hq have zero imaginary part. Otherwise, isreal(hq) returns a 0 indicating that the filter is complex. Complex quantized filters have one or more coefficients with nonzero imaginary parts.
Examples
% Create a reference filter.
[b,a] = ellip(2,0.5,20,0.4);
% Create a quantized filter from the reference filter.
hq = qfilt('df2t',{b,a});
% Test if all filter coefficients are real.
r = isreal(hq)
r =
1
See Also
isfir, islinphase, ismaxphase, isminphase, issos, isstable, isallpass
| isminphase | issos | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |