Hi, I've been unable to produce this error. I tried with 4 columns of 1,000,000 data points, with 20 edge points for each dimension.
Using too many edge points (histogram bins) will make the output array too big for matlab to handle.
In the linux program 'top', I saw the MATLAB process was using around 4% of the memory (system has 4GB). Maybe you could try the code below, and see if it works on yours.
Elapsed time is 2.554106 seconds.
20 20 20 20