Convert decimal integer to arbitrary base.

DECIMAL_CONVERT generates a vector of coefficients representing a base 10 integer in a chosen base.

您现在正在关注此提交

DECIMAL_CONVERT(D,B) returns the representation of decimal integer, D, as a vector of coefficients such that:

D = xn*B^n + ... + x2*B^2 + x1*B^1 + x0*B^0

where B is the chosen base.

See also polyval, dec2base, base2dec, de2bi, bi2de.

引用格式

DS (2026). Convert decimal integer to arbitrary base. (https://ww2.mathworks.cn/matlabcentral/fileexchange/35133-convert-decimal-integer-to-arbitrary-base), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Data Type Conversion 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.0.0

Text edit; no code changes.

1.0.0.0