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
cc6d29c5
Commit
cc6d29c5
authored
12 years ago
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
reporting: @table: add vline_after option
parent
d0be97c4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/reporting/@table/table.m
+10
-5
10 additions, 5 deletions
matlab/reporting/@table/table.m
matlab/reporting/@table/write.m
+5
-0
5 additions, 0 deletions
matlab/reporting/@table/write.m
with
15 additions
and
5 deletions
matlab/reporting/@table/table.m
+
10
−
5
View file @
cc6d29c5
...
...
@@ -40,6 +40,7 @@ o.footnote = '';
o
.
config
=
''
;
o
.
hlines
=
false
;
o
.
vlines
=
false
;
o
.
vline_after
=
''
;
o
.
data
=
''
;
o
.
seriestouse
=
''
;
...
...
@@ -81,11 +82,15 @@ assert(isint(o.precision), '@table.table: precision must be an int');
assert
(
isempty
(
o
.
range
)
||
(
isa
(
o
.
range
,
'dynDates'
)
&&
o
.
range
.
ndat
>=
2
),
...
[
'@table.table: range is specified as a dynDates range, e.g. '
...
'
''
dynDates(
''
1999q1
''
):dynDates(
''
1999q3
''
)
''
.'
]);
assert
(
isempty
(
o
.
data
)
||
isa
(
o
.
data
,
'dynSeries'
),
[
'@table.table: data must '
...
'be a dynSeries'
]);
assert
(
isempty
(
o
.
seriestouse
)
||
iscellstr
(
o
.
seriestouse
),
[
'@table.table: '
...
'seriestouse must be a cell array of string(s)'
]);
assert
(
isempty
(
o
.
data
)
||
isa
(
o
.
data
,
'dynSeries'
),
...
'@table.table: data must be a dynSeries'
);
assert
(
isempty
(
o
.
seriestouse
)
||
iscellstr
(
o
.
seriestouse
),
...
'@table.table: seriestouse must be a cell array of string(s)'
);
assert
(
isempty
(
o
.
vline_after
)
||
isa
(
o
.
vline_after
,
'dynDate'
),
...
'@table.table: vline_after must be a dynDate'
);
if
o
.
vlines
o
.
vline_after
=
''
;
end
valid_title_sizes
=
{
'Huge'
,
'huge'
,
'LARGE'
,
'Large'
,
'large'
,
'normalsize'
,
...
'small'
,
'footnotesize'
,
'scriptsize'
,
'tiny'
};
assert
(
any
(
strcmp
(
o
.
title_size
,
valid_title_sizes
)),
...
...
...
This diff is collapsed.
Click to expand it.
matlab/reporting/@table/write.m
+
5
−
0
View file @
cc6d29c5
...
...
@@ -59,6 +59,11 @@ for i=1:ndates
fprintf
(
fid
,
'|'
);
end
fprintf
(
fid
,
'r'
);
if
~
isempty
(
o
.
vline_after
)
if
dates
(
i
)
==
o
.
vline_after
fprintf
(
fid
,
'|'
);
end
end
end
fprintf
(
fid
,
'@{}}%%\n'
);
if
~
isempty
(
o
.
title
)
...
...
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