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: pspm_cfg_extract_segments.m
    path of file: ./repos/PsPM/src/pspm_cfg
    
    the code of the file until where you have to start completion: function [extract_segments] = pspm_cfg_extract_segments(job)
% function [extract_segments] = pspm_cfg_extract_segments(job)
%
% Matlabbatch function for pspm_extract_segments

    
function [extract_segments] = pspm_cfg_extract_segments(job)
% function [extract_segments] = pspm_cfg_extract_segments(job)
%
% Matlabbatch function for pspm_extract_segments
%__________________________________________________________________________
% PsPM 3.1
% (C) 2016 Tobias Moser (University of Zurich)

% $Id$
% $Rev$

% Initialise
global settings
if isempty(settings), pspm_init; end