/dvbt/trunk/debug/mm/ml/forge_gcalc/int2hex4.m

http://github.com/zaqwes8811/decoder-reed-solomon · MATLAB · 11 lines · 8 code · 1 blank · 2 comment · 1 complexity · e5eaba80c86a1396070823eb58c67953 MD5 · raw file

  1. % ??? ? ??????????????? hex
  2. function cRez = int2hex4(iInp)
  3. cRez = [];
  4. tmp = 0;
  5. for i = 1:4
  6. tmp = mod(iInp, 16);
  7. iInp = (iInp-tmp)/16;
  8. % ?????? ??????????
  9. cRez = [dec2hex(tmp) cRez];
  10. end