source:
ETALON/SPESO/ana2015/warning_sp.m
Last change on this file was 634, checked in by , 8 years ago | |
---|---|
File size: 367 bytes |
Line | |
---|---|
1 | function warning_sp(txt) |
2 | |
3 | global basedir; |
4 | |
5 | define_dirs_analysis(); |
6 | st=dbstack(); |
7 | txtst=''; |
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+'); |
12 | fprintf(fid,'[Warning] %s :\t %s \t { %s} \n', datestr(now), txt, txtst ); |
13 | fclose(fid); |
14 | warning(txt); |
15 | end %function |
Note: See TracBrowser
for help on using the repository browser.