diff NEWS @ 23356:ef20eee0247d

allow hex2num to handle integer values * hex2num.cc: Handle integer types. Simplify using templates and generic functions. Allow num2hex to return a cell array. Ensure hex digits are always created and processed in big-endian order. New tests. * NEWS: Note changes.
author John W. Eaton <jwe@octave.org>
date Thu, 06 Apr 2017 13:18:51 -0400
parents 5ab7192f91d8
children 2aab625b502c
line wrap: on
line diff
--- a/NEWS	Thu Apr 06 13:12:09 2017 -0400
+++ b/NEWS	Thu Apr 06 13:18:51 2017 -0400
@@ -19,6 +19,13 @@
     storing and retrieving values by name, rather than by position which
     is how arrays work.
 
+ ** hex2num and num2hex now work for integer and char types and num2hex
+    may optionally return a cell array of strings instead of a character
+    array.  If given a cell array of strings, hex2num now returns a
+    numeric array of the same size as the input cell array.  Previously,
+    hex2num would accept a cell array of strings of arbitrary dimension
+    but would always return a column vector.
+
  ** The "names" option used in regular expressions now returns a struct
     array, rather than a struct with a cell array for each field.  This
     change was made for Matlab compatibility.