No BSD License  

Highlights from
Simple example how to create a mex-file!

from Simple example how to create a mex-file! by Giovani Tonel
Example how to create a mex-file (.dll)

func(pto,x,y,op)
function yrp = func(pto,x,y,op)
% Giovani Tonel (giotonel@enq.ufrgs.br) - February 2007


P 		= 	polyfit(x,y,op);

yrp	=	polyval(P,pto);

Contact us at files@mathworks.com