view extra codes/plot_peaks.m @ 6:8428a0ebd45f

Function for loading MELODIA output
author emmanouilb <emmanouil.benetos.1@city.ac.uk>
date Sat, 20 Apr 2013 14:30:27 +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;