Mercurial > octave-nkf
view examples/@polynomial/get.m @ 16062:cc5a7d1233f3 stable rc-3-6-4-2
bump version for 3.6.4-rc2
* configure.ac (AC_INIT): Version is now 3.6.4-rc2.
(OCTAVE_RELEASE_DATE): Now 2013-02-11.
(OCTAVE_COPYRIGHT): Now 2013.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 11 Feb 2013 16:22:26 -0500 |
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