Encoding the signal with 16 bits
Show older comments
I have a sound wave
I have a code
[f,Fs] = wavread('wolf.wav');
sound(f, Fs);
please tell how to encode the soundwave by 16 bits
Answers (1)
Wayne King
on 13 Sep 2012
Edited: Wayne King
on 13 Sep 2012
Have you tried using the 'native' option when you read the data.
[f,Fs] = wavread('wolf.wav','native');
class(f)
7 Comments
Pat
on 13 Sep 2012
Wayne King
on 13 Sep 2012
Did you try using the 'native' option as I suggested? See my example.
Walter Roberson
on 13 Sep 2012
y0 = int16(f1 * 32768);
Pat
on 14 Sep 2012
Walter Roberson
on 14 Sep 2012
I am not familiar with the wavelet functions.
Pat
on 15 Sep 2012
Categories
Find more on Signal Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!