Home > vbmeg > external > mne > mne_omit_first_line.m

mne_omit_first_line

PURPOSE ^

SYNOPSIS ^

function [rest] = mne_omit_first_line(str)

DESCRIPTION ^

 [rest] = mne_omit_first_line(str)

 Omit the first line in a multi-line string (useful for handling
 error messages)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [rest] = mne_omit_first_line(str)
0002 %
0003 % [rest] = mne_omit_first_line(str)
0004 %
0005 % Omit the first line in a multi-line string (useful for handling
0006 % error messages)
0007 %
0008 
0009 %
0010 %   Author : Matti Hamalainen, MGH Martinos Center
0011 %   License : BSD 3-clause
0012 %
0013 %
0014 %   Revision 1.2  2006/04/23 15:29:40  msh
0015 %   Added MGH to the copyright
0016 %
0017 %   Revision 1.1  2006/04/17 11:52:15  msh
0018 %   Added coil definition stuff
0019 %
0020 %
0021 me='MNE:mne_omit_first_line';
0022 
0023 lf = findstr(10,str);
0024 if isempty(lf)
0025     rest = str;
0026 else    
0027     rest = str(lf+1:size(str,2));
0028 end
0029 
0030 return;
0031 
0032 end
0033

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