\section{NUM2HEX Convert Numbers to IEEE Hex Strings}

\subsection{Usage}

Converts single and double precision arrays to IEEE hex strings.  The
syntax for its use is
\begin{verbatim}
   y = num2hex(x)
\end{verbatim}
where \verb|x| is either a \verb|float| or \verb|double| array.  The output \verb|y| is
a \verb|n-by-p| character array, where \verb|n| is the number of elements in \verb|x|,
and \verb|p| is 16 for \verb|double| arrays, and 8 for \verb|single| arrays.
\subsection{Example}

Some interesting numbers
\begin{verbatim}
--> num2hex([1 0 0.1 -pi inf nan])

ans = 

 3ff0000000000000
 0000000000000000
 3fb999999999999a
 c00921fb54442d18
 7ff0000000000000
 7ff8000000000000


\end{verbatim}
The same in single precision
\begin{verbatim}
--> num2hex(float([1 0 0.1 -pi inf nan]))

ans = 

 3f800000
 00000000
 3dcccccd
 c0490fdb
 7f800000
 7fc00000


\end{verbatim}
