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

 채택된 답변

Jan
Jan 2022년 3월 4일
편집: Jan 2022년 3월 4일

0 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2022년 3월 4일

편집:

Jan
2022년 3월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by