creatcont180model.m 283 B

123456789101112131415
  1. function modelmat=creatcontmodel
  2. th=linspace(-pi,pi,9);
  3. th=[th(1:8) th(1:8)];
  4. for a=1:length(th)
  5. for b=1:length(th)
  6. modelmat(a,b)=(abs(angdiff(th(a),th(b)))/pi); %minor difference since we are using euclidean distance
  7. end
  8. end
  9. % figure;imagesc(modelmat)
  10. end