I am creating an environment to test mex files which will replace
exisiting m files in an extensive matlab simulation. As I do this I
want to be able to check that the results from the new mex function
are the same as the result from the existing m file function. Is
there a slick way to force Matlab to call the m file function when a
mex function of the same name exists? Ideally I would want to do
something like:
a = my_function(x,y,z) % calls the mex version
b = my_function(x,y,z) % calls the m file version
error = abs(a-b);
Any suggestions that don't require renaming files?
Thanks a lot
Dan