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.m
    path of file: ./repos/spm
    
    the code of the file until where you have to start completion: function M = spm_mesh(varargin)
% Load mesh file(s) into memory as patch structure
% FORMAT M = spm_mesh(meshfilename1,meshfilename2,...)
%
% M        - patch structure array (.faces and .vertices) 
%__________________________________________________________________________

    
function M = spm_mesh(varargin)
% Load mesh file(s) into memory as patch structure
% FORMAT M = spm_mesh(meshfilename1,meshfilename2,...)
%
% M        - patch structure array (.faces and .vertices) 
%__________________________________________________________________________

% Guillaume Flandin
% Copyright (C) 2021-2022 Wellcome Centre for Human Neuroimaging


M = [];
if ~nargin
    [f, sts] = spm_select([1,Inf],'.*','Select mesh file');
    if ~sts, return; end