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_mesh_inflate.m
    path of file: ./repos/bspm/thirdparty/spm8
    
    the code of the file until where you have to start completion: function M = spm_mesh_inflate(M,T,S)
% Surface mesh inflation
% FORMAT M = spm_mesh_inflate(M,T,S)
%
% M        - surface mesh structure (see patch) or GIfTI object
%            or handle to a patch in a figure

    
function M = spm_mesh_inflate(M,T,S)
% Surface mesh inflation
% FORMAT M = spm_mesh_inflate(M,T,S)
%
% M        - surface mesh structure (see patch) or GIfTI object
%            or handle to a patch in a figure
% T        - number of time steps [default: Inf (auto)]
% S        - update display every S time steps [default: 0 (never)]
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging

% Guillaume Flandin & Jean Daunizeau
% $Id: spm_mesh_inflate.m 3135 2009-05-19 14:49:42Z guillaume $

error(nargchk(1,3,nargin));

if nargin < 3, S = 0; end