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: TS_FilterData.m
    path of file: ./repos/hctsa/PeripheryFunctions
    
    the code of the file until where you have to start completion: function newFileName = TS_FilterData(whatData,ts_keepIDs,op_keepIDs,newFileName)
% TS_FilterData  Filters data in the hctsa data file, and saves to a new file

    
function newFileName = TS_FilterData(whatData,ts_keepIDs,op_keepIDs,newFileName)
% TS_FilterData  Filters data in the hctsa data file, and saves to a new file
%
% Can use TS_GetIDs to search keywords in hctsa data structures to get IDs
% matching keyword constraints, and use them to input into this function to
% generate hctsa files filtered by keyword matches.
%
%---INPUTS:
% whatData, the input to TS_LoadData that describes the data to load in
% ts_keepIDs, a vector of TimeSeries IDs to keep (empty to keep all)
% op_keepIDs, a vector of Operations IDs to keep (empty to keep all)
%
%---OUTPUT:
% newFileName, the filename of the .mat file that the new, filtered data is saved to
%
%---USAGE:
%
% (*) Remove length-depend