Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

trretet

S = 'HEX to BIN';
disp(S)

HEX='4fcb0fb818159a00'
hex_to_bin=dec2bin(hex2dec(HEX));
printf("BIN = %s\n",hex_to_bin)
printf("LEN = %d\n",length(hex_to_bin))
%disp(hex_to_bin)
%for i = (length(hex_to_bin)):-1:1
for i = 1:(length(hex_to_bin))
    y=str2num(hex_to_bin(i));
    x=[i-1,y];
    disp(x)
    new_arr(1,i)=i-1;
    new_arr(2,i)=num2str(y);
end

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.