%#codegen
%#internal
function Y = vertcatx(T, varargin)
    eml_prefer_const(T);
    eml_prefer_const(varargin);

    firstFiIdx = coder.const(findFirstFiIdx(T, varargin{:}));
    if firstFiIdx == -1 
        % No fi value
        Y = vertcat(varargin{:});
    else
        nt = overcoattypex(T, varargin{:});
        Y = vertcat(fi(varargin{1}, nt), varargin{2:end});    
    end
end

