tomwalters@305: function plot_strobes(nap, strobes, frame_no) tomwalters@305: n = squeeze(nap(frame_no,:,:)); tomwalters@305: s = strobes(frame_no,:); tomwalters@305: figure; tomwalters@305: mesh(n, 'MeshStyle', 'row', 'EdgeColor','black'); tomwalters@305: view([0.01 80]); tomwalters@305: hold on; tomwalters@305: for ch = 1:size(n, 1); tomwalters@305: st = s{1,ch}; tomwalters@305: for i=1:length(st) tomwalters@305: if (st(i) > 0) tomwalters@305: plot3(st(i),ch,n(ch, st(i)) ,'Marker','o','MarkerFaceColor',[1 0 0],'MarkerEdgeColor','w','MarkerSize',6); tomwalters@305: end tomwalters@305: end tomwalters@305: end tomwalters@305: