#!/usr/bin/octave -q graphics_toolkit("gnuplot"); args = argv(); S=load(args{1}); N=load(args{2}); U=unique(S(:,1)); # The different values we have tried res=[U,zeros(size(U,1),2)]; for i = 1:size(U,1) s=S((S(:,1)==U(i)),:)(:,2); n=N((N(:,1)==U(i)),:)(:,2); res(i,2)=mean(s); res(i,3)=mean(n); endfor format("free"); disp(res) plot(res(:,1), res(:,2), "-o;SOLE;", res(:,1), res(:,3), "-sg;naive;", "linewidth", 2); xlabel("size/MiB"); ylabel("time (sec)"); legend("location", "southeast"); axis([U(1) U(size(U,1))]); if (nargin > 2) print(args{3}, "-deps"); else pause(60); endif