Skip to content
Snippets Groups Projects
Verified Commit cea74557 authored by Houtan Bastani's avatar Houtan Bastani Committed by Sébastien Villemot
Browse files

fix bug in creation of latex tables

[skip ci]

(cherry picked from commit 72dfbbdc)
parent ef8495c1
No related branches found
Tags
1 merge request!1815WIP Cherry-picks for 4.6
Pipeline #3146 skipped
function dyn_latex_table(M_, options_, title, LaTeXtitle, headers, labels, values, label_width, val_width, val_precis, optional_header)
%function dyn_latex_table(M_, options_, title, LaTeXtitle, headers, labels, values, label_width, val_width, val_precis, optional_header)
% Copyright (C) 2015-2019 Dynare Team
% Copyright (C) 2015-2020 Dynare Team
%
% This file is part of Dynare.
%
......@@ -42,7 +42,7 @@ if all(~isfinite(values))
else
values_length = max(ceil(max(max(log10(abs(values(isfinite(values))))))),1)+val_precis+1;
end
if any(values) < 0 %add one character for minus sign
if any(values < 0) %add one character for minus sign
values_length = values_length+1;
end
headers_length = cellofchararraymaxlength(headers(2:end));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment