close all
for k = 1:10
    A2 = (1/sqrt(2*pi))*exp(-(rand(10,10)).^2)-.2*eye(10);
    A1 = normrnd(0,1,10,10)-.2*eye(10);
    [V1,D1] = eig(A1);
    [V2,D2] = eig(A2);
    a1 = max(real(diag(D1)))
    a2 = max(real(diag(D1)))
    t = linspace(0,20,101);
    for i = 1:101
        k1(i) = log(norm(exp(t(i)*A1),2));
        w1(i) = (t(i)*a);
        k2(i) = log(norm(exp(t(i)*A2),2));
        w2(i) = exp(t(i)*a2);
    end
    figure
    plot(t,k1,'r',t,w1,'b')
    figure
    semilogy(t,k2,'k',t,w2,'g')
end
