Mercurial > octave
changeset 22540:6574e90e8e27
dec2base.m: avoid check for vectorization, as it is done anyway.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Tue, 27 Sep 2016 13:22:22 +0200 |
parents | e9f77d099a63 |
children | 4b7ab10b5c38 |
files | scripts/strings/dec2base.m |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/strings/dec2base.m Thu Sep 08 08:36:28 2016 -0700 +++ b/scripts/strings/dec2base.m Tue Sep 27 13:22:22 2016 +0200 @@ -63,9 +63,7 @@ endif ## Create column vector for algorithm - if (! iscolumn (d)) - d = d(:); - endif + d = d(:); ## Treat logical as numeric for compatibility with ML if (islogical (d)) @@ -92,7 +90,7 @@ ## determine number of digits required to handle all numbers, can overflow ## by 1 digit - max_len = round (log (max (max (d(:)), 1)) / log (base)) + 1; + max_len = round (log (max (max (d), 1)) / log (base)) + 1; if (nargin == 3) max_len = max (max_len, len);