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