update now with plotting script
authorMart Lubbers <mart@martlubbers.net>
Thu, 1 Oct 2015 18:38:55 +0000 (20:38 +0200)
committerMart Lubbers <mart@martlubbers.net>
Thu, 1 Oct 2015 18:38:55 +0000 (20:38 +0200)
mart/ex10/ex10ab.m [new file with mode: 0644]

diff --git a/mart/ex10/ex10ab.m b/mart/ex10/ex10ab.m
new file mode 100644 (file)
index 0000000..f1af50a
--- /dev/null
@@ -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