view 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
line wrap: on
line source
function plot_peaks(Xmag,Xphase,ploc,t)
figure(1);
subplot(2,1,1)
plot(Xmag);
hold on;
plot(ploc,Xmag(ploc),'r*');
plot([1,length(Xmag)],[t,t],'g');
hold off;
subplot(2,1,2);
plot(Xphase);
hold on;
plot(ploc,Xphase(ploc),'r*');
hold off;
pause;