Filter löschen
Filter löschen

My matlab is not recognizing HEXA values

13 Ansichten (letzte 30 Tage)
Imtiaz nabi
Imtiaz nabi am 4 Mär. 2022
Bearbeitet: Jan am 4 Mär. 2022
Hi I am getting an error whenever I try to use hexa values in matlab. What should I do to get rid of this issue? I am currently using 2019a and just switched from 2017b hoping to make the code run...
for example when I try 0x1FFFF or 0X1FFFF I keep on getting the following error

Akzeptierte Antwort

Jan
Jan am 4 Mär. 2022
Bearbeitet: Jan am 4 Mär. 2022
Your observation is correct. Before version 2019b hexadecimal and binary values are not recognized by Matlab and a leading 0x or 0b is not recognized. See: https://www.mathworks.com/help/releases/R2020a/matlab/matlab_prog/specify-hexadecimal-and-binary-numbers.html
Either upgrade to at least R2019b or use sscanf , which is much faster than hex2dec.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by