No BSD License  

Highlights from
JHEX2DEC

from JHEX2DEC by Michael Kleder
Arbitrary length hex to decimal conversion.

c=jhex2dec(h)
function c=jhex2dec(h)
% Arbitrary length hex to decimal conversion
% Input and output are CHARACTER ARRAYS
% (Michael Kleder, March 2005)
d=double(upper(h))-48;k=(d>9);d(k)=d(k)-7;
c=java.math.BigInteger('0');
for x=1:length(d);
    c=c.shiftLeft(4);
    c=c.add(java.math.BigInteger(num2str(d(x))));
end
c=char(c.toString);


Contact us at files@mathworks.com