Affinity Propagation apclusterK.m Could not find pmin
Could not find pmin , apclusterK
Expression or statement is incorrect--possibly unbalanced , apclusterK.m
Solution:
N=max(max(s(:,1)),max(s(:,2)));
S=-Inf*ones(N,N);
changed to be
N=max(max(s(:,1)),max(s(:,2)));
S=zeros(N,N);
ref:
http://www.psi.toronto.edu/index.php?q=affinity%20propagation