function [check,d1,d2] = check_interlacing_property(P1,P2)
    check = 1;
    %% unit check
    [n11,n12] = size(P1);
    [n21,n22] = size(P2);
    if n11 ~= n12
        error("P1 has to be quadratic")
    elseif n21 ~= n22
        error("P2 has to be quadratic")
    elseif n11 ~= n22 + 1
        error("P1, P2 has to quadratic matrices, where dim(P1) = dim(P2)+1")
    end
    
    %% calculate eigenvalues
    [~,d1,~] = reorderEigen_skew(P1);
    [~,d2,~] = reorderEigen_skew(P2);
    
    d1 = d1(1:ceil(length(d1)/2));
    d2 = d2(1:floor(length(d2)/2));

    %% test interlacing property
    for i = 1:length(d2)
        if ~(d1(i)>d2(i) && d2(i)>d1(i+1))
            check = 0;
            break;
        end 
    end 
    
    if check == 1
        disp('Interlacing property fulfilled')
    end 
end 