MATLAB: Pole-zero plot with blackman window, FIR filter – GUI

blackmanguipole-zerozplane

Hi everyone,
I'm working on a GUI and I want to make pole-zero plot with blackman window (together with fir1 function) but it doesn't work. Other windows works good, however blackman plot not. I used pzplot, pzmap and zplane functions. What should I do?
b = fir1(rzad,Wn,blackman(rzad+1));
Hz=tf(b,1);
axes(handles.axes6)
h = pzplot(Hz);
%pzmap(Hz)
%zplane(b,1)
grid on

Best Answer

The Signal Processing Toolbox tf function requires as its argument a digital filter object created by the designfilt function. It will not give you the result you want, since you have already calculated the numerator of your transfer function as ‘b’.
There is also nothing wrong with the use of the Blackman window.
this works for me:
rzad = 21; % Create Data

Wn = [0.3 0.7]; % Create Data
b = fir1(rzad,Wn,blackman(rzad+1));
zplane(b,1)
grid on
I cannot determine the problem with this plot and your GUI. Your filter design and the plot work.