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: getPCAfeatures.m
    path of file: ./repos/CellExplorer/calc_CellMetrics
    
    the code of the file until where you have to start completion: function PCA_features = getPCAfeatures(session)
% The script has a high memory usage as all waveforms are loaded into memory at the same time. 
% If you experience a memory error, increase your swap/cashe file, and increase the amount of 
% memory MATLAB can use.
%
% 
    
function waveforms_all = Kilosort_ExtractWaveforms()
        % Extracts waveforms from a dat file using GPU enable filters.
        % Based on the GPU enable filter from Kilosort.
        % All settings and content are extracted from the rez input structure
        %
        % Outputs:
        %   waveforms_all - structure with extracted waveforms
        
        if exist(ops.binaryFile) == 0
            warning(['Binary file does not exist: ', ops.binaryFile])
        end