Mercurial > hg > octave-nkf
view examples/@FIRfilter/FIRfilter.m @ 18174:b72bcf5f78cc stable release-3-8-0
Version 3.8.0 released.
* configure.ac (OCTAVE_VERSION): Now 3.8.0.
(OCTAVE_RELEASE_DATE): Now 2013-12-27.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 27 Dec 2013 16:59:04 -0500 |
parents | 050bc580cb60 |
children |
line wrap: on
line source
## -*- texinfo -*- ## @deftypefn {Function File} {} FIRfilter () ## @deftypefnx {Function File} {} FIRfilter (@var{p}) ## Create a FIR filter with polynomial @var{p} as coefficient vector. ## @end deftypefn function f = FIRfilter (p) f.polynomial = []; if (nargin == 0) p = @polynomial ([1]); elseif (nargin == 1) if (!isa (p, "polynomial")) error ("FIRfilter: expecting polynomial as input argument"); endif else print_usage (); endif f = class (f, "FIRfilter", p); endfunction