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: eq.m
    path of file: ./repos/matStats/matStats/@Table
    
    the code of the file until where you have to start completion: function res = eq(obj1, obj2)
% Overload the eq operator for Table objects.
%
%   output = eq(input)
%
%   Example
%   eq
%
%   See also
%     ne, ismember

% ------
% Author: David Legland

    
function res = eq(obj1, obj2)
% Overload the eq operator for Table objects.
%
%   output = eq(input)
%
%   Example
%   eq
%
%   See also
%     ne, ismember

% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
% Created: 2011-08-02,    using Matlab 7.9.0.529 (R2009b)
% Copyright 2011 INRA - Cepia Software Platform.

[dat1, dat2, parent, names1, names2] = parseInputCouple(obj1, obj2, inputname(1), inputname(2));

if ~hasFactors(parent)
    % compute new data, with numeric data
    newData = bsxfun(@eq, dat1, dat2);

else
    % Case of factor data table
    if size(parent, 2) > 1
        error('Table:eq:FactorColumnForbidden', ...
            'If table is factor, it should have only one column');
    end