Mercurial > hg > pmhd
view extra codes/plot_peaks.m @ 4:aeccfa83c7a4
Merge
author | Katerina <katkost@gmail.com> |
---|---|
date | Sat, 20 Apr 2013 13:03:57 +0100 |
parents | 1c0f36c348d4 |
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;