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_mci_glike.m
    path of file: ./repos/spm12/toolbox/mci/inference
    
    the code of the file until where you have to start completion: function [L,e,st] = spm_mci_glike (P,M,U,Y,G)
% Gaussian Log-likelihood 
% FORMAT [L,e,st] = spm_mci_glike (P,M,U,Y,G)
%
% P         Parameters
% M         Model structure
% U         Inputs
% Y         Data
% G         Predictions (computed if not provided)
% 

    
function [L,e,st] = spm_mci_glike (P,M,U,Y,G)
% Gaussian Log-likelihood 
% FORMAT [L,e,st] = spm_mci_glike (P,M,U,Y,G)
%
% P         Parameters
% M         Model structure
% U         Inputs
% Y         Data
% G         Predictions (computed if not provided)
% 
% L         Log Likelihood
% e         Errors
% st        Status flag (0 for OK, -1 for problem)
%
% Assumes diagonal error covariance M.Ce
%__________________________________________________________________________
% Copyright (C) 2015 Wellcome Trust Centre for Neuroimaging

% Will Penny and Biswa Sengupta
% $Id: spm_mci_glike.m 6548 2015-09-11 12:39:47Z will $

st=0;
try
    G = G;
catch
    if isfield(M,'IS')
        [G,tmp,st] = feval(M.IS,P,M,U);
    else
        [G,tmp,st] = spm_mci_fwd (P,M,U);
    end