%

% Copyright 2017 The MathWorks, Inc.
function colVec = createFunctionCall(T, signal)
    import xls.internal.ReadTable;
    assert(signal.Classification == xls.internal.SignalClassifications.FcnCall, ...
        'Use createTimeSeries for non FcnCall signals');
    colVec = T{:, signal.StartColumn};
    colVec = ReadTable.removeTrailingNan(colVec);
    source = signal.getElement.getTimeSection.getSource;
    startRow = source.getSimulation.getRange.DataStartRow;
    startCol = source.FcnCallStartCol + signal.StartColumn - 1;
    cellLoc = ReadTable.getMissingDataLoc(colVec, startRow, startCol);
    if ~isempty(cellLoc)    
        ReadTable.throwMissingDataError(signal, cellLoc);
    end
end
