Commit 87b78f65 authored by MichelJuillard's avatar MichelJuillard
Browse files

dynatable: fixed bug when table contains Inf or NaN

parent 24e1c499
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment