matlab - Double integration using MEX -
matlab - Double integration using MEX -
i need write mex file evaluate double integral of arbitrary function, since in matlab numerical integration slow. far able defining hand possible functions utilize , parse string in mex file take 1 integrate. ugly. send mex file straight function, like
myintmex(@(x,y)f,0,1,0,1) to integrate function f in interval [0,1]x[0,1].
so far alternative have found mexcallmatlab have read slower pure matlab. have found free code here works single integrals.
so question is: how do it? how give mex file function handle? code exists?
matlab integration anonymous-function mex
Comments
Post a Comment