Name

number_bin2hex — Converts a binary string into a hexadecimal string.

Calling Sequence

   binstr = number_bin2hexary ( hexstr )
   
   

Parameters

binstr :

a matrix of strings. Each entry of the matrix must have length divisible by 4.

hexstr :

a matrix of strings.

Description

Returns the binary string corresponding to the given hexadecimal string. Returns upper case letter. Use convstr to change this to lower case.

The user may pad the binary string with additionnal "0" if necessary.

Examples

binstr = "0011111111100101010010110011010100000100110001101011010010100011"
expected = "3FE54B3504C6B4A3";
hexstr = number_bin2hex (binstr)

   

Authors

Copyright (C) 2010 - DIGITEO - Michael Baudin