source: ETALON/SPESO/ana2015/warning_sp.m

Last change on this file was 634, checked in by delerue, 8 years ago

Updated SPESO analysis code

File size: 367 bytes
Line 
1function warning_sp(txt)
2
3        global basedir;
4
5        define_dirs_analysis();
6        st=dbstack();
7txtst='';
8  for iloop=2:length(st)
9              txtst=[ txtst st(iloop).file ':' num2str(st(iloop).line) ' ' ];
10  end
11        fid=fopen([basedir 'warning_sp.txt'],'a+');
12fprintf(fid,'[Warning] %s :\t %s \t { %s} \n', datestr(now), txt, txtst  );
13        fclose(fid);
14        warning(txt);
15end %function
Note: See TracBrowser for help on using the repository browser.