如题所述
第1个回答 2017-07-10
1
2
3
4
5
6
7
8
9
DEC2BIN Convert decimal integer to a binary string.
DEC2BIN(D) returns the binary representation of D as a string.
D must be a non-negative integer smaller than 2^52.
DEC2BIN(D,N) produces a binary representation with at least
N bits.
Example
dec2bin(23) returns '10111'
对字符'a',调用如下:
1
dec2bin('a', 8)本回答被提问者采纳
2
3
4
5
6
7
8
9
DEC2BIN Convert decimal integer to a binary string.
DEC2BIN(D) returns the binary representation of D as a string.
D must be a non-negative integer smaller than 2^52.
DEC2BIN(D,N) produces a binary representation with at least
N bits.
Example
dec2bin(23) returns '10111'
对字符'a',调用如下:
1
dec2bin('a', 8)本回答被提问者采纳