matlab bin()函数的作用和注意事项
这几天在学习小波变换,在阅读demo过程中,碰到一些问题,就记录下来,碰巧也解决了,就写下来和大家分享!
例如bin函数,在matlab中读取是从左到右的顺序读取字节流。
>> bin=dec2bin(16,8);%16=(00010000)2
>> bin(:,1:2:7)
ans =
0000
>> bin=dec2bin(170);%170=(10101010)2
>> bin
原创
2011-10-28 10:17:29 ·
5087 阅读 ·
0 评论