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: bnii_4d_omitfirstn.m
    path of file: ./repos/bspm/nii
    
    the code of the file until where you have to start completion: function bnii_4d_omitfirstn(fname4d, nomit, outname)
% BNII_3DTO4D_FILENAME Find characters in common across multiple strings
%
%  USAGE: bnii_3dto4d(fname3d, varargin)

    
function bnii_4d_omitfirstn(fname4d, nomit, outname)
% BNII_3DTO4D_FILENAME Find characters in common across multiple strings
%
%  USAGE: bnii_3dto4d(fname3d, varargin)
% __________________________________________________________________________
%

% ---------------------- Copyright (C) 2015 Bob Spunt ----------------------
%	Created:  2015-04-03
%	Email:     spunt@caltech.edu
% __________________________________________________________________________
if nargin<2, mfile_showhelp; return; end
if nargin<3, outname = []; end
if ischar(fname4d), fname4d = cellstr(fname4d); end