MATLAB: How can i convert decimal to hex or another basis without use dec2hex

I need to make a function about convert basis to another (decimal to oktal or another) but i dont know the prinsip , i hope some one give me tips for that

Best Answer

  • I really do like this forum. But sometimes I suggest to take the time to search in the net. You can imagine, that this problem has been solved by others already. You find the general algorithm at WikiPedia and most likely your textbook for maths. When you search for "Matlab convert hex to base" you will even find running Matlab code.