give more space to columns printed by dyn_table
parent
85767cfb19
commit
196266cbe4
|
@ -17,7 +17,7 @@ function dyn_table(title, preamble, afterward, rows, cols, indent, data)
|
|||
% SPECIAL REQUIREMENTS
|
||||
% none
|
||||
|
||||
% Copyright (C) 2017 Dynare Team
|
||||
% Copyright (C) 2017-2019 Dynare Team
|
||||
%
|
||||
% This file is part of Dynare.
|
||||
%
|
||||
|
@ -53,7 +53,7 @@ colrow = sprintf('%s', colbegin);
|
|||
colrow2 = colrow;
|
||||
format = [' %-' num2str(maxrowstrlen) 's'];
|
||||
for i = 1:length(cols)
|
||||
precision = 12;
|
||||
precision = 16;
|
||||
if colstrlens(i) < precision
|
||||
colrow = [colrow repmat(' ', 1, floor((precision-mod(colstrlens(i), precision))/2)) cols{i} repmat(' ', 1, ceil((precision-mod(colstrlens(i), precision))/2))];
|
||||
colrow2 = [colrow2 repmat('_', 1, precision)];
|
||||
|
@ -66,7 +66,7 @@ for i = 1:length(cols)
|
|||
colrow = [colrow repmat(' ', 1, indent)];
|
||||
colrow2 = [colrow2 repmat(' ', 1, indent)];
|
||||
end
|
||||
format = [format repmat(' ', 1, indent) '%' sprintf('%d.5f', precision)];
|
||||
format = [format repmat(' ', 1, indent) '%' sprintf('%d.5g', precision)];
|
||||
end
|
||||
|
||||
% Center title
|
||||
|
|
Loading…
Reference in New Issue