Mercurial > hg > octave-nkf
view examples/@polynomial/get.m @ 17987:edaa9ed49a1f
pt_BR.ts: Update Octave Portugese/Brazil translation.
* pt_BR.ts: Update Octave Portugese/Brazil translation.
author | Júlio Hoffimann Mendes <julio.hoffimann@gmail.com> |
---|---|
date | Sat, 23 Nov 2013 08:09:22 -0800 |
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