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
72dfbbdc
Verified
Commit
72dfbbdc
authored
5 years ago
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Pipelines
1
Hide 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 @
72dfbbdc
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.
Houtan Bastani
@houtanb
mentioned in commit
cea74557
·
5 years ago
mentioned in commit
cea74557
mentioned in commit cea745578feea6e0714316f498c7ccb2e23d22c2
Toggle commit list
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