From 6f410f4cc19e01eec88eb016943923cfd1519bf7 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Tue, 31 May 2016 11:42:47 +0200 Subject: [PATCH] Provide LaTeX output for model_comparison.m --- matlab/model_comparison.m | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/matlab/model_comparison.m b/matlab/model_comparison.m index 4e4c904c3..fd179b454 100644 --- a/matlab/model_comparison.m +++ b/matlab/model_comparison.m @@ -136,8 +136,21 @@ for model_iter=1:NumberOfModels end end -dyntable(title,headers,labels,values, 0, 15, 6); - +dyntable(options_,title,headers,labels,values, 0, 15, 6); +if options_.TeX + M_temp.fname=fname; + M_temp.dname=fname; + headers_tex=''; + for ii=1:size(headers,1) + headers_tex=strvcat(headers_tex,strrep(headers(ii,:),'_', '\_')); + end + labels_tex=''; + for ii=1:size(labels,1) + labels_tex=strvcat(labels_tex,strrep(labels(ii,:),' ', '\ ')); + end + + dyn_latex_table(M_temp,options_,title,['model_comparison',type],headers_tex,labels_tex,values,0,16,6); +end function name = get_model_name_without_path(modelname) idx = strfind(modelname,'\');