Skip to content
Snippets Groups Projects
Commit 87b78f65 authored by MichelJuillard's avatar MichelJuillard
Browse files

dynatable: fixed bug when table contains Inf or NaN

parent 24e1c499
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment