I've a MATLAB function which computes a histogram difference between two color histograms. I've converted it into a corresponding JAR file using MATLAB Builder.
Now, when I try to retrieve the value, it's giving some unexpected results. The same code when executed in MATLAB for the same arguments is giving a different answer than that given when using Java.
The difference between both answers is quite large, so, it cannot be neglected.
Code is at: https://gist.github.com/835910
Can any one tell me the reason why this is happening?