FUNCTION REFERENCE

hex2num

Convert hexadecimal bit patterns to floating-point values.

Convert hexadecimal bit patterns to floating-point values.

Syntax

hex2num(S)

Accepts a character matrix or a cell array of character vectors and returns a column of doubles; empty input returns []. Blanks and short rows are padded with zeros. Both upper- and lower-case hexadecimal digits are accepted.

Example

hex2num('3ff')   % 1

Differences from MATLAB: Character inputs are limited to 65536 UTF-16 units.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.