view examples/@FIRfilter/subsasgn.m @ 16651:4e50bd2946d8 ss-3-7-4

snapshot 3.7.4 * configure.ac (OCTAVE_VERSION): Bump to 3.7.4.
author John W. Eaton <jwe@octave.org>
date Mon, 13 May 2013 08:07:15 -0400
parents f8b8ab529913
children
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/subsref: invalid property \"%s\"", fld);
      endif
    otherwise
      error ("FIRfilter/subsagn: Invalid index type")
  endswitch
endfunction