function x = mycramer(A, b)
%MYCRAMER - solve a system of linear equations using Cramer's rule
    [n, ~] = size(A);
    x = zeros(n, 1);
    detA = mydetermin(A);
    for i = 1:n
        C = A;
        C(:, i) = b;
        x(i) = determin(C)/detA;
    end
end
