diff --git a/garage_results.m b/garage_results.m index 9660ded..7c0eab5 100644 --- a/garage_results.m +++ b/garage_results.m @@ -25,8 +25,17 @@ function garage_results() -y = load("/home/jens/garage_y.dat", '-ascii'); +data = load("/home/jens/garage_y.dat", '-ascii'); bits = load("/home/jens/garage_bits.dat", '-ascii'); -plot(y(:,1), y(:,2), bits(:,1), bits(:,2), 'xr'); grid; +t = data(:,1); +y = data(:,2); +vthr = data(:,3); +vcorr = data(:,4); + +subplot(2, 1, 1) +plot(t, y, 'o-', bits(:,1), bits(:,2), 'xr', t, vthr, '-y'); grid; + +subplot(2, 1, 2) +plot(t, vcorr, '-b'); grid; endfunction