it's very slow, and it becomes a nuisance for large matrices -- it's almost an order of magnitude slower than the other hist2d, the one that uses histc; however, that one has a bug;
also, there's something funny with the plot, it seems it omits 1 row and 1 column...
anyway, it's easier to write than to debug so I wrote my own :-)