function [ trans ] = Transition( matrice )
    [l]=size(matrice);
    k=max(matrice);
    trans=ones(k);
    for i=2:l
        trans(matrice(i-1), matrice(i))=trans(matrice(i-1), matrice(i))+1;
    end
    for i=1:k
        trans(i,:)=trans(i,:)/sum(trans(i,:));
    end
end


