From: Mart Lubbers Date: Fri, 2 Oct 2015 11:11:13 +0000 (+0200) Subject: plots X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=b0bd8f724348ba4ec1adb341bc37ab556d7abb10;p=des2015.git plots --- diff --git a/mart/ex10/plots.m b/mart/ex10/plots.m deleted file mode 100644 index 966b0f3..0000000 --- a/mart/ex10/plots.m +++ /dev/null @@ -1,36 +0,0 @@ -a = figure; -set(a,'visible','off'); -d = csvread("ex10ab.csv")(:,2) ./ 1000; -dmax = max(d); -dmin = min(d); -davg = mean(d); -ddev = std(d); -figure; -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 - -%set(a,'visible','off'); -%d = csvread("ex10d.csv")(:,2); -%dmax = max(d); -%dmin = min(d); -%davg = mean(d); -%ddev = std(d); -%figure; -%plot(d, '@k'); -%title("Measurements on interrupt latency via LPT1"); -%xlabel("Number of the measurement"); -%ylabel("Time till next measurement in nanoseconds"); -%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 diff --git a/mart/ex10/plotsab.m b/mart/ex10/plotsab.m new file mode 100644 index 0000000..7c8db12 --- /dev/null +++ b/mart/ex10/plotsab.m @@ -0,0 +1,17 @@ +a = figure; +set(a,'visible','off'); +d = csvread("ex10ab.csv")(:,2) ./ 1000; +dmax = max(d); +dmin = min(d); +davg = mean(d); +ddev = std(d); +figure; +plot(d, '@k'); +title("Measurements on jitter"); +xlabel("Measurement"); +ylabel("Time(us)"); +text(2000, 101, sprintf("Min: %.3f", dmin)); +text(2000, 101.25, sprintf("Mean: %.3f", davg)); +text(2000, 101.50, sprintf("Std: %.3f", ddev)); +text(2000, 101.75, sprintf("Max: %.3f", dmax)); +print("-dsvg", "ex10ab.svg"); diff --git a/mart/ex10/plotsd.m b/mart/ex10/plotsd.m new file mode 100644 index 0000000..1dc2a53 --- /dev/null +++ b/mart/ex10/plotsd.m @@ -0,0 +1,18 @@ + +set(a,'visible','off'); +d = csvread("ex10d.csv")(:,2) ./1000; +dmax = max(d); +dmin = min(d); +davg = mean(d); +ddev = std(d); +figure; +plot(d, '@k'); +title("Measurements on interrupt latency via LPT1"); +xlabel("Number of the measurement"); +ylabel("Time till next measurement in nanoseconds"); +stepsize = (dmax+dmin)/25; +text(2000, dmax-stepsize, sprintf("Min: %.3f", dmin)); +text(2000, dmax-stepsize*2, sprintf("Mean: %.3f", davg)); +text(2000, dmax-stepsize*3, sprintf("Std: %.3f", ddev)); +text(2000, dmax-stepsize*4, sprintf("Max: %.3f", dmax)); +print("-dsvg", "ex10d.svg");