shex2dec.m

Convert signed hexadecimal string to decimal integer.
179 Downloads
Updated 19 Jun 2014

View License

%SHEX2DEC Convert signed hexadecimal string to decimal integer.
% D = SHEX2DEC(H) interprets the hexadecimal string H and returns in D the
% equivalent decimal number.
%
% If H is a character array or cell array of strings, each row is interpreted
% as a hexadecimal string.
%
% EXAMPLES:
% shex2dec('FFFFFF2B') and shex2dec('f2b') both return -213
%
% See also HEX2DEC, DEC2HEX, HEX2NUM, BIN2DEC, BASE2DEC.
% Modified from the HEX2DEC by MathWorks, Inc.

Cite As

Petri Väisänen (2024). shex2dec.m (https://www.mathworks.com/matlabcentral/fileexchange/47002-shex2dec-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Data Type Conversion in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0