qr (Matlab function) Orthogonal-triangular decomposition

## Matlab/Scilab equivalent

Matlab | Scilab
    X = qr(A)
    [Q,R]   = qr(A)
    [Q,R,P] = qr(A)
    [..]    = qr(A,0)
    [Q,R,P] = qr(A, 'vector')
    % No equivalent
    % No equivalent

    [C, R]  = qr(S,B)
    [C,R,P] = qr(S,B)
    [..]    = qr(S,B,0)
    [C,R,P] = qr(S,B, 'vector')
    R = qr(A)
    [Q,R]   = qr(A)
    [Q,R,P] = qr(A)
    [..]    = qr(A, "e")
    // No equivalent
    [Q, R, rk, P] = qr(A)
    [Q, R, rk, P] = qr(A, tolerance)

    // No equivalent
    // No equivalent
    // No equivalent
    // No equivalent

When used with two input values and tree output values, Scilab and Matlab qr results can differ. Use mtlb_qr instead.