Rank: 311295 based on 0 downloads (last 30 days) and 0 file submitted
photo

Davis

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Davis View all
Updated File Comments Rating
05 Mar 2013 Mutual Information computation A self-contained package for computing mutual information, joint/conditional probability, entropy Author: Hanchuan Peng

Maybe I'm missing something, but I think this code produces weird behavior with vectors of low values, e.g. returning entropy of 0 for [1:10] * .0001.

Run this code and see for yourself:
a = [];
for i = 1:20e4
a(i) = entropy([1:10] .* i/10e4);
end
plot(a)
set(gca,'xticklabel',[0:.2:2])
ylabel('Est. Entropy')
xlabel('Scaling factor')

09 Feb 2013 Light Bartlein Color Maps Generates one of four colormaps using schemes proposed in technical literature Author: Robert Bemis

sorry, that's line 44 -- where arg parsing is done

09 Feb 2013 Light Bartlein Color Maps Generates one of four colormaps using schemes proposed in technical literature Author: Robert Bemis

Great function, though it bugs if you call lbmap with only a text argument, e.g.
lbmap('Blue')
Error using /
Matrix dimensions must agree.
Error in linspace (line 31)
y = d1 + (0:n1).*(d2 - d1)/n1;
Error in lbmap (line 62)
idx2 = linspace(0,1,n);

a simple change in line 4 can resolve this.

Contact us