Skip to content
Snippets Groups Projects
Verified Commit 72dfbbdc authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix bug in creation of latex tables

[skip ci]
parent 4c256c2c
No related branches found
No related tags found
No related merge requests found
Pipeline #3137 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