Mercurial > hg > pmhd
view extra/plot_peaks.m @ 10:6840f77b83aa
commit
author | Yading Song <yading.song@eecs.qmul.ac.uk> |
---|---|
date | Sun, 21 Apr 2013 10:55:35 +0200 |
parents | |
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;