Mercurial > hg > pmhd
annotate extra/plot_peaks.m @ 13:844d341cf643 tip
Back up before ISMIR
author | Yading Song <yading.song@eecs.qmul.ac.uk> |
---|---|
date | Thu, 31 Oct 2013 13:17:06 +0000 |
parents | 6840f77b83aa |
children |
rev | line source |
---|---|
yading@10 | 1 function plot_peaks(Xmag,Xphase,ploc,t) |
yading@10 | 2 figure(1); |
yading@10 | 3 subplot(2,1,1) |
yading@10 | 4 plot(Xmag); |
yading@10 | 5 hold on; |
yading@10 | 6 plot(ploc,Xmag(ploc),'r*'); |
yading@10 | 7 plot([1,length(Xmag)],[t,t],'g'); |
yading@10 | 8 hold off; |
yading@10 | 9 subplot(2,1,2); |
yading@10 | 10 plot(Xphase); |
yading@10 | 11 hold on; |
yading@10 | 12 plot(ploc,Xphase(ploc),'r*'); |
yading@10 | 13 hold off; |
yading@10 | 14 pause; |