creat_l_r_cont_model.m 288 B

123456789101112131415
  1. function modelmat=creat_l_r_cont_model
  2. th=linspace(-pi,pi,17);
  3. th=sin([th(1:16)]);
  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