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: ntuples.m
    path of file: ./repos/OpenTLD/utils
    
    the code of the file until where you have to start completion: % Copyright 2011 Zdenek Kalal
%
% This file is part of TLD.
% 
% TLD is free software: you can redistribute it and/or modify
% it under the terms of the
    
function ntuple = ntuples(varargin)
% Computes all possible ntupples.

x = varargin;

ntuple = x{1};
for i = 2:length(x)
    num_col  = size(ntuple,2);
    num_item = length(x{i});
    ntuple   = repcel(ntuple, 1, num_item);
    newline  = repmat(x{i},1,num_col);
    ntuple   = [ntuple;newline];
end