convert a number to n-ary format

3 次查看(过去 30 天)
Niko
Niko 2014-1-29
评论: Niko 2014-1-29
Hi everyone,
How can I implement a function of converting an integer into another numeral system? For example, func(13,2) should convert 13 (in decimal) to binary number 1101.
Thanks a lot!
Niko
  1 个评论
Niko
Niko 2014-1-29
I just found the function dec2base and that solves my problem. Thanks!

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by