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
87b78f65
Commit
87b78f65
authored
Jul 25, 2012
by
MichelJuillard
Browse files
dynatable: fixed bug when table contains Inf or NaN
parent
24e1c499
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/dyntable.m
View file @
87b78f65
...
...
@@ -30,7 +30,7 @@ label_width = max(size(deblank(char(headers(1,:),labels)),2))+2;
label_fmt
=
sprintf
(
'%%-%ds'
,
label_width
);
values_length
=
max
(
ceil
(
max
(
max
(
log10
(
abs
(
values
))))),
1
)
+
val_precis
+
1
;
values_length
=
max
(
ceil
(
max
(
max
(
log10
(
abs
(
values
(
isfinite
(
values
))
))))),
1
)
+
val_precis
+
1
;
if
any
(
values
)
<
0
values_length
=
values_length
+
1
;
end
...
...
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