Add caller function info to dyn_latex_table.m

time-shift
Johannes Pfeifer 2016-06-01 13:01:26 +02:00
parent 55b2cd6f4c
commit 6be02ef086
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ header_string=[header_string '\\\\\n'];
filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '.tex'];
fidTeX = fopen(filename,'w');
fprintf(fidTeX,['%% ' datestr(now,0)]);
stack = dbstack;
fprintf(fidTeX,['%% ' datestr(now,0) ', created by ' stack(2).file]);
fprintf(fidTeX,' \n');
fprintf(fidTeX,' \n');
fprintf(fidTeX,'\\begin{center}\n');