fiff_end_block(fid, kind) Writes a FIFF_BLOCK_END tag fid An open fif file descriptor kind The block kind to end
0001 function fiff_end_block(fid, kind) 0002 % 0003 % fiff_end_block(fid, kind) 0004 % 0005 % Writes a FIFF_BLOCK_END tag 0006 % 0007 % fid An open fif file descriptor 0008 % kind The block kind to end 0009 % 0010 0011 % 0012 % Author : Matti Hamalainen, MGH Martinos Center 0013 % License : BSD 3-clause 0014 % 0015 % Revision 1.3 2006/04/23 15:29:40 msh 0016 % Added MGH to the copyright 0017 % 0018 % Revision 1.2 2006/04/10 23:26:54 msh 0019 % Added fiff reading routines 0020 % 0021 % Revision 1.1 2005/12/05 16:01:04 msh 0022 % Added an initial set of fiff writing routines. 0023 % 0024 0025 me = 'MNE:fiff_end_block'; 0026 0027 if nargin ~= 2 0028 error(me, 'Incorrect number of arguments'); 0029 end 0030 0031 FIFF_BLOCK_END = 105; 0032 fiff_write_int(fid, FIFF_BLOCK_END, kind); 0033 0034 return