Use designfilt to design a 6th-order highpass IIR filter. Specify a normalized passband frequency of rad/sample. Convert it to a single-precision filter. Identify the precision in each case.
Digital filter, specified as a digitalFilter object. Use designfilt to generate d based
on frequency-response specifications. If you want a single-precision
filter, apply single to the
output of designfilt.
Example: d = designfilt('lowpassiir','FilterOrder',3,'HalfPowerFrequency',0.5) specifies
a third-order Butterworth filter with normalized
3-dB frequency 0.5π rad/sample.