You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: row2gen.m
    path of file: ./repos/OPTI/Utilities/opti
    
    the code of the file until where you have to start completion: function [A,b,Aeq,beq] = row2gen(Ain,rl,ru)

    
function [A,b,Aeq,beq] = row2gen(Ain,rl,ru)
%ROW2GEN Convert Linear A with Row Bounds to Linear Inequality & Equality Constraints
%   [A,b,Aeq,beq] = row2gen(A,rl,ru)

%   Copyright (C) 2012 Jonathan Currie (Control Engineering)

if(isempty(Ain))
    A = []; b = []; Aeq = []; beq = [];
    return;
elseif(isempty(ru))
    error('You must supply Ain, rl and ru!');
end