Watch this Author's files
Regarding John Baldauf's comment:
It's easy to recreate the problem using the first example in the hist2 code. Take e.g.
xedges = linspace(-1,1,64); yedges = linspace(-1,1,64);
and compare with the output of
xedges = linspace(-1,1,62); yedges = linspace(-1,1,64);
xedges = linspace(-1,1,64); yedges = linspace(-1,1,62);
A minor possible improvement: I needed to pass several defines (-D) to the compiler, but currently the bat file only supports 9 arguments. You can replace the %1 %2 ... with a single %* to support more arguments (at least in Windows 7).