Filter löschen
Filter löschen

convert a number to n-ary format

1 Ansicht (letzte 30 Tage)
Niko
Niko am 29 Jan. 2014
Kommentiert: Niko am 29 Jan. 2014
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 Kommentar
Niko
Niko am 29 Jan. 2014
I just found the function dec2base and that solves my problem. Thanks!

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by