Mercurial > hg > octave-lyh
view examples/@FIRfilter/FIRfilter_aggregation.m @ 11428:13f128bd6a6f
Add curl and divergence functions
author | Kai Habel <kai.habel@gmx.de> |
---|---|
date | Fri, 31 Dec 2010 14:00:12 +0100 |
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) if (nargin == 0) f.polynomial = @polynomial ([1]); elseif (nargin == 1) if (isa (p, "polynomial")) f.polynomial = p; else error ("FIRfilter: expecting polynomial as input argument"); endif else print_usage (); endif f = class (f, "FIRfilter"); endfunction