view trunk/src/Scripts/plot_strobes.m @ 706:f8e90b5d85fd tip

Delete CARFAC code from this repository. It has been moved to https://github.com/google/carfac Please email me with your github username to get access. I've also created a new mailing list to discuss CARFAC development: https://groups.google.com/forum/#!forum/carfac-dev
author ronw@google.com
date Thu, 18 Jul 2013 20:56:51 +0000
parents ed91095d9240
children
line wrap: on
line source
function plot_strobes(nap, strobes, frame_no)
  n = squeeze(nap(frame_no,:,:));
  s = strobes(frame_no,:);
  figure;
  mesh(n, 'MeshStyle', 'row', 'EdgeColor','black');
  view([0.01 80]);
  hold on;
  for ch = 1:size(n, 1);
    st = s{1,ch};
    for i=1:length(st)
      if (st(i) > 0)
        plot3(st(i),ch,n(ch, st(i)) ,'Marker','o','MarkerFaceColor',[1 0 0],'MarkerEdgeColor','w','MarkerSize',6);
      end
    end
  end