Mercurial > hg > octave-lyh
view examples/@FIRfilter/FIRfilter_aggregation.m @ 17507:89ffc9c786e5
sombrero.m: Return meshgridded x,y rather than vectors.
* scripts/plot/sombrero.m: Return meshgridded x,y rather than vectors so that
behavior is the same as peaks().
author | Rik <rik@octave.org> |
---|---|
date | Wed, 25 Sep 2013 13:46:09 -0700 |
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) 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