Mercurial > hg > octave-nkf
view examples/@FIRfilter/FIRfilter.m @ 12528:2ac5028e5cb7
dump_prefs.m: Close @deftypefn macro left open.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 19 Mar 2011 12:54:05 -0700 |
parents | f8b8ab529913 |
children | 050bc580cb60 |
line wrap: on
line source
## -*- texinfo -*- ## @deftypefn {Function File} {} FIRfilter () ## @deftypefnx {Function File} {} FIRfilter (@var{p}) ## Creates an 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