From: karim hossam on 22 Apr 2010 10:27 hi all, I want to convert a soud file (.wav or .au) to a string of bits Like [0 1 0 1 1 0 0 1] i foud the function wavread('filename')...but it gives avslues from-1 to1 and not in the form of string... thank u for ur help
From: Daniel Armyr on 29 Apr 2010 03:34 "karim hossam" <bayer_karim(a)hotmail.com> wrote in message <hqpmc9$9o3$1(a)fred.mathworks.com>... > hi all, > I want to convert a soud file (.wav or .au) to a string of bits Like [0 1 0 1 1 0 0 1] i foud the function wavread('filename')...but it gives avslues from-1 to1 and not in the form of string... > thank u for ur help I think you need to define your target format a bit more. What should the bits signify? You can always convert the data vector you have in matlab to a number format and then, using dec2bin() convert it to a string of 0s and 1s. --DA
|
Pages: 1 Prev: Question about overload function Next: ignore imaginary numbers only if they're small |