Mercurial > hg > octave-lyh
view examples/@FIRfilter/subsref.m @ 17535:c12c688a35ed default tip lyh
Fix warnings
author | LYH <lyh.kernel@gmail.com> |
---|---|
date | Fri, 27 Sep 2013 17:43:27 +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