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: bf_stat_evoked_t.m
    path of file: ./repos/spm/toolbox/DAiSS
    
    the code of the file until where you have to start completion: function BF = bf_stat_evoked_t(S)
% Compute t-stat accross trials for evoked response
% FORMAT BF = bf_stat_evoked_t(S)
%   S               - input structure
%  fields of S:
%   S.BF        - path to BF.mat file
%   S.act       - active timpeoint(ms) - 1 x 1 matrix      -Default: none
%   S.base      - base timpeoint(ms) - 1 x 1 matrix        -Default: none
%   S.condact   - active condition label - string          -Default: 'ALL'
%   S.condbase  - baseline condition label - string        -Default: 'ALL'
%   S.MNI       - flag to output in MNI space - logical    -Default: true

    
function BF = bf_stat_evoked_t(S)
% Compute t-stat accross trials for evoked response
% FORMAT BF = bf_stat_evoked_t(S)
%   S               - input structure
%  fields of S:
%   S.BF        - path to BF.mat file
%   S.act       - active timpeoint(ms) - 1 x 1 matrix      -Default: none
%   S.base      - base timpeoint(ms) - 1 x 1 matrix        -Default: none
%   S.condact   - active condition label - string          -Default: 'ALL'
%   S.condbase  - baseline condition label - string        -Default: 'ALL'
%   S.MNI       - flag to output in MNI space - logical    -Default: true
%   S.summary   - output summary statistic  - logical      -Default: false 
% Output:
%   BF               - path to BF.mat file
%__________________________________________________________________________

% Tim Tierney
% Copyright (C) 2023 Wellcome Centre for Human Neuroimaging


%-Arguments
%--------------------------------------------------------------------------
if ~isfield(S, 'condact'),  S.condact  = 'ALL'; end