필터 지우기
필터 지우기

128bit binary to decimal and hexadecimal , and versa also?

조회 수: 1 (최근 30일)
Radwa
Radwa 2015년 1월 14일
댓글: Radwa 2015년 1월 15일
I have
plain_tex = ('1111110000011111001111011110100010100110110111000110011010110')
this string I want to convert to that form
plaintext_hex = {'39' '8a' '59' 'b4' 'ac' '00' '00' '00' ...
'00' '00' '00' '00' '00' '00' '00' '00'};
%plaintext_hex = {'398a59b4ac000000000000000000000'};
%str=num2hex(plaintext_hex)
%plaintext_hex = {'32' '43' 'f6' 'a8' '88' '5a' '30' '8d' ...
% '31' '31' '98' 'a2' 'e0' '37' '07' '34'};
or directly dec as I will then do that Convert plaintext from hexadecimal (string) to decimal representation
plaintext = hex2dec(plaintext_hex)
  댓글 수: 3
Radwa
Radwa 2015년 1월 15일
plaintext_hex = {'39' '8a' '59' 'b4' 'ac' '00' '00' '00' ...
'00' '00' '00' '00' '00' '00' '00' '00'};
this is 1* 16 cell , ot is hexa.string
plain_tex = ('1111110000011111001111011110100010100110110111000110011010110')
this is 1*32 char. it is binary
Radwa
Radwa 2015년 1월 15일
I have symbolic toolbox I have 2 problem 1. to make bin 2 dec deal with more than 52 bit 2.to convert 32 char to 16 cell

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by