Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
5c1846eb
Commit
5c1846eb
authored
May 17, 2013
by
Houtan Bastani
Browse files
reporting: @series: fix coloring
parent
e30cbef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@series/write.m
View file @
5c1846eb
...
...
@@ -59,19 +59,17 @@ end
data
=
o
.
data
(
dates
);
data
=
data
.
data
;
for
i
=
1
:
size
(
data
,
1
)
thisCellData
=
round
(
data
(
i
)
*
precision
)/
precision
;
fprintf
(
fid
,
' &'
);
if
o
.
tableShowMarkers
if
thisCellData
<
0
if
data
(
i
)
<
0
fprintf
(
fid
,
'\\color{%s}'
,
o
.
tableNegColor
);
elseif
thisCellData
>
0
elseif
data
(
i
)
>
0
fprintf
(
fid
,
'\\color{%s}'
,
o
.
tablePosColor
);
end
fprintf
(
fid
,
'['
);
end
fprintf
(
fid
,
dataString
,
thisCellData
);
fprintf
(
fid
,
dataString
,
round
(
data
(
i
)
*
precision
)/
precision
);
if
o
.
tableShowMarkers
fprintf
(
fid
,
']'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment