28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

num2hex<br />

2num2hex<br />

Purpose Convert singles and doubles to IEEE hexadecimal strings.<br />

Syntax num2hex(X)<br />

Description If X is a single or double precision array with n elements, num2hex(X) is an<br />

n-by-8 or n-by-16 char array of the hexadecimal floating-point representation.<br />

The same representation is printed with format hex.<br />

Examples num2hex([1 0 0.1 -pi Inf NaN])<br />

2-1538<br />

returns<br />

ans =<br />

3ff0000000000000<br />

0000000000000000<br />

3fb999999999999a<br />

c00921fb54442d18<br />

7ff0000000000000<br />

fff8000000000000<br />

num2hex(single([1 0 0.1 -pi Inf NaN]))<br />

returns<br />

ans =<br />

3f800000<br />

00000000<br />

3dcccccd<br />

c0490fdb<br />

7f800000<br />

ffc00000<br />

See Also hex2num, dec2hex, format

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!