matlab中怎样把ASCII码转换成字符串

2024-12-03 16:00:52
推荐回答(1个)
回答(1):

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)