Mercurial > hg > aimc
view src/Scripts/plot_strobes.m @ 504:a0869cb1c99b
Major update to how the DOHC works; like in recent book OHC chapter; Design Doc update (a bit)
author | dicklyon@google.com |
---|---|
date | Thu, 24 May 2012 22:26:56 +0000 |
parents | 9122efd2b227 |
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