Hi, here you have my implementation of the confusionmat function. I hope it helps someone
function [ret] = confusionmat(v1, v2) values = union(unique(v1), unique(v2)); ret = zeros(size(values), size(values)); for i = 1:size(v1) i1 = find(values == v1(i)); i2 = find(values == v2(i)); ret(i1, i2) = ret(i1, i2) + 1; end endfunction
- Hi! Thank you for the patch but we don't really use the Octave wiki as discussion forum and almost no one is following this. You really should be submitting this on Octave's patch tracker.
- --carandraug (talk) 03:29, 14 November 2014 (PST)
Thanks for working on this very useful package! I'm still on octave 3.6.4 (fedora 20); statistics 1.2.3 requires Octave (>= 3.6.1) io (>= 1.0.18) but io 2 requires octave 3.8. Is io-1.2.5.tar.gz (the latest 1.x) the best choice to satisfy the dependency? 220.127.116.11 03:46, 7 March 2015 (PST)