Mercurial > octave
view examples/code/@FIRfilter/subsasgn.m @ 20726:25d676f9619c
Preface error() messages with name of function when possible.
* FIRfilter.m, subsasgn.m, get.m, polynomial.m, polynomial_superiorto.m,
set.m, subsasgn.m, subsref.m, Cell.cc, data.cc, graphics.in.h, toplev.cc,
urlwrite.cc, audiodevinfo.cc, symbfact.cc, CollocWt.cc, inputParser.m,
narginchk.m, nargoutchk.m, uicontrol.m, rgb2ind.m, textread.m, open.m,
__w2mpth__.m, fminbnd.m, pkg.m, pan.m, printd.m, rotate3d.m, zoom.m, eigs.m,
validatestring.m, __run_test_suite__.m, runtests.m, test.m:
Preface error() messages with name of function when possible.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 19 Nov 2015 14:17:45 -0800 |
parents | c8240a60dd01 |
children | 73ab962bc52d |
line wrap: on
line source
function out = subsasgn (f, index, val) switch (index.type) case "." fld = index.subs; if (strcmp (fld, "polynomial")) out = f; out.polynomial = val; else error ("@FIRfilter/subsasgn: invalid property \"%s\"", fld); endif otherwise error ("@FIRfilter/subsasgn: Invalid index type") endswitch endfunction