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: spm_dcm_spem.m
    path of file: ./repos/spm/toolbox/SPEM_and_DCM
    
    the code of the file until where you have to start completion: function DCM = spm_dcm_spem(DCM)
% Estimate parameters of a DCM of smooth pursuit eye movements
% FORMAT DCM = spm_dcm_spem(DCM)
%
% DCM
%    DCM.name: name string
%    DCM.xY: data   {1 x nc struct}
%
%        xY.Y{i}  - eye-gaze position for i-th condition
%        xY.C{i}  - target position for i-th condition
%        xY.DT    - time bin (ms)
%        xY.occ   - occlusion function occ(x) = {0,1}: -1 > x > 1
%        xY.C{i}  - target position for i-th condition
%
%    DCM.xU: design [nu x nc array]
%    DCM.pE: prior expectation
%    DCM.pC: prior covariance
%
% This routine checks the data and inverts a meta-model of observed slow
% pursuit eye movements using the standard variational Laplacian scheme
%
% See also: spm_SEM_gen; spm_dcm_spem_data; spm_dcm_spem_results
%__________________________________________________________________________

% Karl Friston
% Copyright (C) 2013-2022 Wellcome Centre for Human Neuroimaging


    
function DCM = spm_dcm_spem(DCM)
% Estimate parameters of a DCM of smooth pursuit eye movements
% FORMAT DCM = spm_dcm_spem(DCM)
%
% DCM
%    DCM.name: name string
%    DCM.xY: data   {1 x nc struct}
%
%        xY.Y{i}  - eye-gaze position for i-th condition
%        xY.C{i}  - target position for i-th condition
%        xY.DT    - time bin (ms)
%        xY.occ   - occlusion function occ(x) = {0,1}: -1 > x > 1
%        xY.C{i}  - target position for i-th condition
%
%    DCM.xU: design [nu x nc array]
%    DCM.pE: prior expectation
%    DCM.pC: prior covariance
%
% This routine checks the data and inverts a meta-model of observed slow
% pursuit eye movements using the standard variational Laplacian scheme
%
% See also: spm_SEM_gen; spm_dcm_spem_data; spm_dcm_spem_results
%__________________________________________________________________________

% Karl Friston
% Copyright (C) 2013-2022 Wellcome Centre for Human Neuroimaging


% name
%--------------------------------------------------------------------------
if ~isfield(DCM,'name')
    DCM.name =  ['DCM-' date '.mat'];
end