clear;
TIME = zeros(20);
WIDTH = zeros(20);
j=0;
for i=100:20:2000
    j=j+1;
    disp(i);
    A=rand(i,i);
    timer();
    B=A^25;
    b=timer();
    disp(b);
    TIME(j)=b;
    WIDTH(j)=i;
end

plot2d(WIDTH,TIME,style=2);


TIME = zeros(20);
WIDTH = zeros(20);
j=0;
for i=100:20:2000
    j=j+1;
    disp(i);
    A=rand(i,i);
    timer();
    A=diag(A);
    A=A^25;
    b=timer();
    disp(b);
    TIME(j)=b;
    WIDTH(j)=i;
end

plot2d(WIDTH,TIME,style=5);
