Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
cea74557
Verified
Commit
cea74557
authored
5 years ago
by
Houtan Bastani
Committed by
Sébastien Villemot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix bug in creation of latex tables
[skip ci] (cherry picked from commit
72dfbbdc
)
parent
ef8495c1
No related branches found
Tags
Tags containing commit
1 merge request
!1815
WIP Cherry-picks for 4.6
Pipeline
#3146
skipped
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/dyn_latex_table.m
+2
-2
2 additions, 2 deletions
matlab/dyn_latex_table.m
with
2 additions
and
2 deletions
matlab/dyn_latex_table.m
+
2
−
2
View file @
cea74557
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-20
19
Dynare Team
% Copyright (C) 2015-20
20
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
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment