Mercurial > octave-nkf
view examples/@FIRfilter/FIRfilter.m @ 19654:a1d172bfcb2f gui-release
eliminate some unused variable and typedef warnings
* pr-output.cc, profiler.cc, ov-base-diag.cc, ov-perm.cc: Eliminate
unused variables and typedefs.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 23 Jan 2015 16:09:35 -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