Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語 -

Please note that the recommended version of Scilab is 6.0.1. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Signal Processing > filters > frmag


magnitude of FIR and IIR filters

Calling Sequence




a single input, single output discrete transfer function, or a polynomial or the vector of polynomial coefficients, the filter.


a polynomial or the vector of polynomial coefficients, the numerator of the filter


a polynomial or the vector of polynomial coefficients, the denominator of the filter (the default value is 1).


integer, the number of points in frequency response.


vector of magnitude of frequency response at the points fr.


points in the normalized frequency domain where magnitude is evaluated.


calculates the magnitude of the frequency responses of FIR and IIR filters. The filter description can be one or two vectors of coefficients, one or two polynomials, or a single output discrete transfer function.

the frequency discretization is given by fr=linspace(0,1/2,npts).


hz=iir(3,'bp','cheb1',[.15 .25],[.08 .03]);
hz=iir(3,'bp','ellip',[.15 .25],[.08 .03]);

See Also

  • iir — iir digital filter
  • eqfir — minimax approximation of FIR filter
  • repfreq — frequency response
  • calfrq — frequency response discretization
  • phasemag — phase and magnitude computation
Report an issue
<< find_freq filters fsfirlin >>

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 14:01:06 CEST 2014