%% Double- and Single-Precision Filter
% Use designfilt to design a sixth-order highpass IIR filter. Specify a normalized passband frequency of 0.6\pi rad/sample. Convert it to a single-precision filter. Identify the precision in each case.

fd = designfilt('highpassiir','FilterOrder',6,'PassbandFrequency',0.6);
isd = isdouble(fd)
fs = single(fd);
iss = isdouble(fs)

% Copyright 2015 The MathWorks, Inc.