covert 128 binary string into hex decimal

조회 수: 29 (최근 30일)
samah samir
samah samir 2020년 12월 17일
댓글: samah samir 2020년 12월 18일
i have 128 bit binary string how to convert it into hex decimal string ?

채택된 답변

James Tursa
James Tursa 2020년 12월 17일
편집: James Tursa 2020년 12월 17일
b = your binary digits vector
d = [8 4 2 1]*reshape(b,4,[]);
h = sprintf('%x',d);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by