From: Mart Lubbers Date: Thu, 1 Oct 2015 18:38:55 +0000 (+0200) Subject: update now with plotting script X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=b8a3acca346b9f3abcfad773ab96487fb31fa569;p=des2015.git update now with plotting script --- 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