view examples/@FIRfilter/subsasgn.m @ 12385:c468c5b902b3 release-3-4-x ss-3-3-92

version is now 3.3.92
author John W. Eaton <jwe@octave.org>
date Sun, 06 Feb 2011 06:27:19 -0500
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