Determine whether filter uses real coefficients
true) if all filter coefficients for the filter
real, and returns
0 (or false) otherwise. Complex
filters have one or more coefficients with nonzero imaginary parts.
isreal(hs) determines whether
the filter coefficients of the filter System object™
1 if true and
Note Quantizing a filter cannot make a real filter into a complex filter.
Create a double-precision filter and a fixed-point filter. Then, test the coefficients of the fixed-point filter to see if they are strictly real.
d=fdesign.lowpass('n,fp,ap,ast',5,0.4,0.5,20); hd=design(d,'ellip'); hd.arithmetic='fixed'; IsReal =isreal(hd); % Returns a 1