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: ui_report_fmri.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8/marsbar-0.44/@mardo_99
    
    the code of the file until where you have to start completion: function ui_report_fmri(D,s,i)
% Interactive review of fMRI design matrix
% FORMAT ui_report_fmri(D,s,i)
%
% Copied with minor edits from:
% @(#)spm_fMRI_design_show.m	2.17	2.16 Karl Friston 99/09/20
% see that file for comments
% 
% $Id$


    
function ui_report_fmri(D,s,i)
% Interactive review of fMRI design matrix
% FORMAT ui_report_fmri(D,s,i)
%
% Copied with minor edits from:
% @(#)spm_fMRI_design_show.m	2.17	2.16 Karl Friston 99/09/20
% see that file for comments
% 
% $Id$

SPM = des_struct(D);
xX   = SPM.xX;
Sess = SPM.Sess;

%-Generic CallBack code
%-----------------------------------------------------------------------
cb = 'tmp = get(findobj(''Tag'', ''DesRepUI''),''UserData''); ';

% Do not proceed unless there are trials specified
%-----------------------------------------------------------------------
for j = 1:length(Sess)
    if ~length(Sess{j}.name)
        spm('alert*','User-specifed regressors only!',mfilename,sqrt(-1));
        return
    end