Home > vbmeg > external > mne > fiff_write_name_list.m

fiff_write_name_list

PURPOSE ^

SYNOPSIS ^

function fiff_write_name_list(fid,kind,data)

DESCRIPTION ^

 fiff_write_name_list(fid,kind,mat)
 
 Writes a colon-separated list of names

     fid           An open fif file descriptor
     kind          The tag kind
     data          An array of names to create the list from

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function fiff_write_name_list(fid,kind,data)
0002 %
0003 % fiff_write_name_list(fid,kind,mat)
0004 %
0005 % Writes a colon-separated list of names
0006 %
0007 %     fid           An open fif file descriptor
0008 %     kind          The tag kind
0009 %     data          An array of names to create the list from
0010 %
0011 
0012 %
0013 %   Author : Matti Hamalainen, MGH Martinos Center
0014 %   License : BSD 3-clause
0015 %
0016 %   Revision 1.4  2006/04/23 15:29:40  msh
0017 %   Added MGH to the copyright
0018 %
0019 %   Revision 1.3  2006/04/12 10:29:02  msh
0020 %   Made evoked data writing compatible with the structures returned in reading.
0021 %
0022 %   Revision 1.2  2006/04/10 23:26:54  msh
0023 %   Added fiff reading routines
0024 %
0025 %   Revision 1.1  2005/12/05 16:01:04  msh
0026 %   Added an initial set of fiff writing routines.
0027 %
0028 %
0029 
0030 
0031 me='MNE:fiff_write_name_list';
0032 
0033 if nargin ~= 3
0034         error(me,'Incorrect number of arguments');
0035 end
0036 
0037 all=data{1};
0038 for k = 2:size(data,2)
0039     all=strcat(all,':',data{k});
0040 end
0041 fiff_write_string(fid,kind,all);
0042 
0043

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005