Converting data to decimal

조회 수: 3 (최근 30일)
Tinkul
Tinkul 2012년 9월 14일
there are some data in one row: 123446739FBCDE how can i convert the above to decimal using matlab coding as below format: 12----------->decimal format 34----------->decimal format 46----------->decimal format 73----------->decimal format 9F----------->decimal format BC----------->decimal format DE----------->decimal format
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 14일
123446739FBCDE is a string or hex format
Tinkul
Tinkul 2012년 9월 14일
it is in hex format which is in a single quotation(' ').We have to take first two data(12),then next two data(34) and then next two data(46).....and convert the two data(eg. 12) into decimal format as shown above in the question.

댓글을 달려면 로그인하십시오.

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 9월 14일
hex2dec(reshape('123446739FBCDE',2,[])')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by