如何用matlab把二进制数组通过ASCII码转化成字符

2025-01-02 19:20:22
推荐回答(1个)
回答1:

pass_array=[0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 0 ];
a = bi2de(pass_array(1,1:8))
b = bi2de(pass_array(1,9:16))
char(a)
char(b)

运行结果:
a =

86

b =

117

ans =

V

ans =

u

>>