This is machine translation

Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Translate This Page

MathWorks Machine Translation

The automated translation of this page is provided by a general purpose third party translator tool.

MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.

num2hex

Convert singles and doubles to IEEE hexadecimal strings

Syntax

num2hex(X)

Description

If X is a single or double precision array
with n elements, then num2hex(X) is
an n-by-8 or n-by-16 character
array in which each row contains the hexadecimal floating-point representation
of a number. The same representation is printed with format hex.