From b8a3acca346b9f3abcfad773ab96487fb31fa569 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Thu, 1 Oct 2015 20:38:55 +0200 Subject: [PATCH] update now with plotting script --- mart/ex10/ex10ab.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mart/ex10/ex10ab.m diff --git a/mart/ex10/ex10ab.m b/mart/ex10/ex10ab.m new file mode 100644 index 0000000..f1af50a --- /dev/null +++ b/mart/ex10/ex10ab.m @@ -0,0 +1,15 @@ +d = csvread("ex10a.csv")(:,2) ./ 1000; +dmax = max(d); +dmin = min(d); +davg = mean(d); +ddev = std(d); +plot(d, '@k'); +title("Measurements on jitter"); +xlabel("Number of the measurement"); +ylabel("Time till next measurement in microseconds"); +stepsize = (dmax+dmin)/25; +text(100, dmax-stepsize, sprintf("Min: %d", dmin)); +text(100, dmax-stepsize*2, sprintf("Mean: %.2f", davg)); +text(100, dmax-stepsize*3, sprintf("Std: %.2f", ddev)); +text(100, dmax-stepsize*4, sprintf("Max: %d", dmax)); +print -dpng "-S1200,1200" ex10ab.png -- 2.20.1