Home > freetb4matlab > strings > hex2dec.m

hex2dec

PURPOSE ^

% Return the integer corresponding to the hexadecimal number stored

SYNOPSIS ^

function d = hex2dec (h)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} hex2dec (@var{s})
% Return the integer corresponding to the hexadecimal number stored
% in the string @var{s}.  For example,
%
% @example
% @group
% hex2dec ('12B')
%      @result{} 299
% hex2dec ('12b')
%      @result{} 299
% @end group
% @end example
%
% If @var{s} is a string matrix, returns a column vector of converted
% numbers, one per row of @var{s}.  Invalid rows evaluate to NaN.
% @seealso{dec2hex, base2dec, dec2base, bin2dec, dec2bin}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003