Watch this Author's files
worked well for me. As another user suggested, it does slow down quite a bit with larger data sets (or finer bin resolution).
Regarding the 'hist3' function, it requires the Statistics Toolbox, so this is a good option for users that don't have that toolbox.
Seems to work great overall. Couldn't get it to replace the string '//' in my ascii file, though. Get this error:
Bareword found where operator expected at -e line 1, near "%/g"
(Missing operator before g?)
syntax error at -e line 1, next token ???
Execution of -e aborted due to compilation errors.