diff --git a/matlab/peak_detect.m b/matlab/peak_detect.m index 081ad42..c5a8dd5 100644 --- a/matlab/peak_detect.m +++ b/matlab/peak_detect.m @@ -216,9 +216,9 @@ for k=1:numFrames % Output subplot(2, 1, 1) - plot(1:Nh, X, peak_pos, X(peak_pos), 'ro', 1:Nh, peak_box_values, 'm-'); grid; axis([0, Nh, -60, 40]); legend('X', 'Peaks', 'BBox') + plot(1:Nh, X, peak_pos, X(peak_pos), 'ro', 1:Nh, peak_box_values, 'm-'); grid; axis([0, Nh, -60, 60]); legend('X', 'Peaks', 'Peak Box') subplot(2, 1, 2) - plot(1:Nh, Xs-Xm, 1:Nh, Xm); grid; axis([0, Nh, -60, 40]); legend('X_s - Xm', 'X_m') + plot(1:Nh, Xs-Xm, 1:Nh, Xm); grid; axis([0, Nh, -60, 60]); legend('X_s - Xm', 'X_m') pause(1/30); end