view examples/@polynomial/polyval.m @ 8256:dba0037e6602

Import new texinfo.tex allowing @ in directory name. Update OOP example class location
author David Bateman <dbateman@free.fr>
date Wed, 22 Oct 2008 04:16:36 +0100
parents examples/polynomial/polyval.m@0c91b9a17dcf
children 567e3e4ab74d
line wrap: on
line source

function [y, dy] = polyval (p, varargin)
  if (nargout == 2)
    [y, dy] = polyval (p.poly, varargin{:});
  else
    y = polyval (p.poly, varargin{:});
  endif
endfunction