If I recall correctly, it used to be that for a matrix M, hist(M)[2] would 
return a matrix whose ith column would be the histogram of the ith column 
of M. I know 'hist' was recently updated, and now whenever I call it on a 
matrix, I get the following error:

julia> x = rand(10,10);

julia> hist(x)
ERROR: Incorrect size of H.
 in hist! at statistics.jl:460
 in hist at statistics.jl:470
 in hist at statistics.jl:472

I get this even if I provide the number of bins or bin edges. I believe H 
is where hist! is writing the column-wise histogram, but I'm not sure why 
it's always of the wrong size. I may be misusing the updated 'hist', but I 
can't figure out how from the code and documentation. Thanks in advance for 
any help.

https://github.com/JuliaLang/julia/blob/master/base/statistics.jl

julia> versioninfo()
Julia Version 0.3.0-prerelease+2503
Commit 2990c29 (2014-04-06 04:30 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin13.1.0)
  CPU: Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
  LAPACK: libopenblas
  LIBM: libopenlibm

Reply via email to