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_start_writing_raw.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 [fid,cals] = fiff_start_writing_raw(name,info,sel)
%
% function [fid,cals] = fiff_start_writing_raw(name,info,sel)
%
% name       filename
% info       The measurement info block of the source file
% sel        Which channels will be included in the output file (optional)
%

%
%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%
% Revision 1.6  2009/03/31 01:12:30  msh
% Improved ID handling
%
% Revision 1.5  2009/03/30 11:37:37  msh
% Added copying of measurement info blocks from the original like in mne_browse_raw

    
function [fid,cals] = fiff_start_writing_raw(name,info,sel)
%
% function [fid,cals] = fiff_start_writing_raw(name,info,sel)
%
% name       filename
% info       The measurement info block of the source file
% sel        Which channels will be included in the output file (optional)
%

%
%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%
% Revision 1.6  2009/03/31 01:12:30  msh
% Improved ID handling
%
% Revision 1.5  2009/03/30 11:37:37  msh
% Added copying of measurement info blocks from the original like in mne_browse_raw
%
% Revision 1.4  2008/05/06 20:40:56  msh
% Fixed ordering of output for compatibility with maxfilter averager
%
% Revision 1.3  2008/04/16 22:24:57  msh
% Added megacq parameters to the measurement info
%
% Revision 1.2  2008/03/13 19:18:06  msh
% Read and write FIFF_MEAS_DATE from/to FIFFB_MEAS_INFO as appropriate
%
% Revision 1.1  2007/11/07 16:05:05  msh
% New routines for writing raw files
%

me='MNE:fiff_start_writing_raw';
if nargin ~= 2 && nargin ~= 3
    error(me,'Incorrect number of arguments');
end