Mercurial > hg > octave-lyh
view examples/@polynomial/get.m @ 17491:6e21e858d677
gcbf.m: Ignore unused returned argument from gcbo with '~'.
* scripts/plot/gcbf.m: Ignore unused returned argument from gcbo with '~'.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 25 Sep 2013 08:52:30 -0700 |
parents | 567e3e4ab74d |
children |
line wrap: on
line source
function s = get (p, f) if (nargin == 1) s.poly = p.poly; elseif (nargin == 2) if (ischar (f)) switch (f) case "poly" s = p.poly; otherwise error ("get: invalid property %s", f); endswitch else error ("get: expecting the property to be a string"); endif else print_usage (); endif endfunction