필터 지우기
필터 지우기

convert a number to n-ary format

조회 수: 4 (최근 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