/dvbt/trunk/debug/mm/ml/forge_gcalc/int2hex4.m
Objective C | 11 lines | 10 code | 1 blank | 0 comment | 1 complexity | e5eaba80c86a1396070823eb58c67953 MD5 | raw file
1% ??? ? ??????????????? hex 2function cRez = int2hex4(iInp) 3cRez = []; 4tmp = 0; 5for i = 1:4 6 tmp = mod(iInp, 16); 7 iInp = (iInp-tmp)/16; 8 % ?????? ?????????? 9 cRez = [dec2hex(tmp) cRez]; 10end 11