www.pudn.com > RS_BCM_255_223_4[1].Matlab.rar > biTOde.m, change:2007-04-15,size:210b


function out=biTOde(a,n)  %输入4个行向量,把二进制转化成十六进制 
L=length(a); 
M=L/n; 
a=reshape(a,n,M); 
for i=1:M 
    out(i)=0; 
    for j=0:(n-1) 
        out(i)=out(i)+2^j*a((n-j),i); 
    end 
    
end