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: fiff_write_named_matrix.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8/external/mne
    
    the code of the file until where you have to start completion: function fiff_write_named_matrix(fid,kind,mat)
%
% fiff_write_named_matrix(fid,kind,mat)
% 

    
function fiff_write_named_matrix(fid,kind,mat)
%
% fiff_write_named_matrix(fid,kind,mat)
% 
% Writes a named single-precision floating-point matrix
%
%     fid           An open fif file descriptor
%     kind          The tag kind to use for the data
%     mat           The data matrix
%

%
%
%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%
%   Revision 1.5  2006/04/23 15:29:40  msh
%   Added MGH to the copyright
%
%   Revision 1.4  2006/04/12 10:29:03  msh
%   Made evoked data writing compatible with the structures returned in reading.
%
%   Revision 1.3  2006/04/10 23:26:54  msh
%   Added fiff reading routines
%
%   Revision 1.2  2005/12/05 20:23:21  msh
%   Added fiff_save_evoked. Improved error handling.
%
%   Revision 1.1  2005/12/05 16:01:04  msh
%   Added an initial set of fiff writing routines.
%
%

global FIFF;
if isempty(FIFF)
   FIFF = fiff_define_constants();
end