From 5b7b8da7fa5628d4e9d14336aec8465c12dce6c3 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Tue, 29 Jul 2014 12:43:34 +0200 Subject: [PATCH] reporting: table fix bug where the table would not be saved in the directory specified by tableDirName if the tableName option was provided --- matlab/reports/@report_table/writeTableFile.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matlab/reports/@report_table/writeTableFile.m b/matlab/reports/@report_table/writeTableFile.m index 575402ea1..311c12f72 100644 --- a/matlab/reports/@report_table/writeTableFile.m +++ b/matlab/reports/@report_table/writeTableFile.m @@ -40,6 +40,8 @@ end if isempty(o.tableName) o.tableName = sprintf('%s/table_pg%d_sec%d_row%d_col%d.tex', o.tableDirName, pg, sec, row, col); +else + o.tableName = [o.tableDirName '/' o.tableName]; end [fid, msg] = fopen(o.tableName, 'w'); -- GitLab