Mercurial > hg > octave-lyh
view examples/@FIRfilter/subsref.m @ 17525:1d0fa3c34ad7
Fully int16 type support
author | LYH <lyh.kernel@gmail.com> |
---|---|
date | Fri, 27 Sep 2013 04:14:51 +0800 |
parents | 48f5b993b819 |
children |
line wrap: on
line source
function out = subsref (f, x) switch (x.type) case "()" n = f.polynomial; out = filter (n.poly, 1, x.subs{1}); case "." fld = x.subs; if (strcmp (fld, "polynomial")) out = f.polynomial; else error ("@FIRfilter/subsref: invalid property \"%s\"", fld); endif otherwise error ("@FIRfilter/subsref: invalid subscript type for FIR filter"); endswitch endfunction