blob: f26c1d04c0a5d3218c5fb4f319939468da72b6cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
%
% Copyright 2001 Free Software Foundation, Inc.
%
% This file is part of GNU Radio
%
% SPDX-License-Identifier: GPL-3.0-or-later
%
%
function plot_freq_response (b,...)
if (nargin == 1)
%% Response of an FIR filter
a = 1;
elseif (nargin == 2)
%% response of an IIR filter
a = va_arg ();
endif
[H,w] = freqz (b,a);
plot (w/(2*pi), abs(H));
grid;
xlabel ('Normalized Frequency (Fs == 1)');
ylabel ('Magnitude (linear)');
endfunction
|