I think it will be more accurate to use
because round makes the first and the last bins twice less than the others.
on running the code from mi_test.m, I got error message: ??? Undefined function or method 'mi' for input arguments of
I am working in Matlab 7.10.0(R 2010a). I don't know what is the problem. Any help will be highly appreciated.
Thanks for sharing the code. I think these is still something wrong with the code. when i tried this a = [1,2,3;1,2,3;1,2,3], and calculate mi(a,a), I get 1.0566, so I think there is still something wrong with it. thanks.