Example for fir1 with a Kaiser window does not work.
Show older comments
Dear all,
I just found that the examples for the function fir1 by using Kaiser window is not working properly.
here is example, it was taken from doc kaiserord, error appears during calling function fir1 :
[n,Wn,beta,ftype] = kaiserord([1500 2000],[1 0],... [0.01 0.1],8000); b = fir1(n,Wn,ftype,kaiser(n+1,beta),'noscale');
here is a mistake :
Error using * Inner matrix dimensions must agree.
Error in firls (line 80) cos_ints = [omega; sin((1:N)' * omega)];
Error in fir1 (line 95) hh = firls(L-1,ff,aa);
Error in temp (line 2) b = fir1(n,Wn,ftype,kaiser(n+1,beta),'noscale');
Hope for the reply.
With the best regards, Burnos Sergey.
Answers (0)
Categories
Find more on Kaiser in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!