* data = input('enter the data:','s');bin = double(data);display(bin);n=dec2base(bin,16);display(n);k = [dec2bin(bin,8)];display(k);len_n = length(n);display(len_n);tot_len = len_n*4*2;len_k = length(k);display(tot_len);x = 896-tot_len;y = x/4;display(x);display(y);
if len_-n < 896 padarray = [ones(1,1), zeros(1,x-1)]; display(padarray); end
Best Answer