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: test_spm_cfg_dcm_est.m
    path of file: ./repos/bspm/thirdparty/spm12/tests
    
    the code of the file until where you have to start completion: function tests = test_spm_cfg_dcm_est
% Unit Tests for test_spm_cfg_dcm_est (DCM model estimation batch)
%__________________________________________________________________________
% Copyright (C) 2016 Wellcome Trust Centre for Neuroimaging

% $Id: test_spm_cfg_dcm_est.m 6735 2016-03-02 15:40:47Z peter $

tests = funct
    
function test_separate_dcm_output(testCase)
% Test that outputing separate DCMs gives the correct results

% Prepare paths
[input_path, path] = prepare_paths();

% Copy all DCMs into a temporary folder
tmp_path = fullfile(path, 'tmp');
mkdir(tmp_path);
copyfile( fullfile(input_path,'DCM_*.mat'), tmp_path); 

ns = 30;

% Gather models
P = {};
for s = 1:ns    
    str    = sprintf('^DCM_s%d_.*mat$',s);
    P(s,:) = cellstr(spm_select('FPList',tmp_path,str));
    
    matlabbatch{1}.spm.dcm.estimate.dcms.subj(s).dcmmat = P(s,:)';
end