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.

2hex2num<br />

Purpose Convert IEEE hexadecimal string to double precision number<br />

Syntax n = hex2num(S)<br />

hex2num<br />

Description n = hex2num(S), where S is a 16 character string representing a hexadecimal<br />

number, returns the IEEE double-precision floating-point number n that it<br />

represents. Fewer than 16 characters are padded on the right with zeros. If S<br />

is a character array, each row is interpreted as a double-precision number.<br />

NaNs, infinities and denorms are handled correctly.<br />

Example hex2num('400921fb54442d18')<br />

returns Pi.<br />

hex2num('bff')<br />

returns<br />

ans =<br />

See Also num2hex, hex2dec, sprintf, format<br />

-1<br />

2-1063

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

Saved successfully!

Ooh no, something went wrong!