view examples/@polynomial/mtimes.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/mtimes.m@0c91b9a17dcf
children 567e3e4ab74d
line wrap: on
line source

function y = mtimes (a, b)
  ap = double (a);
  bp = double (b);
  y = polynomial (filter (ap, 1, [bp(:).', zeros(1, length(bp) - 1)]));
endfunction