I am guessing, i need to digitize it or something
quantize/digitize wav file
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
how can I digitize/quantize .wav file in matlab
well, basically i am trying to modulate it,
[X, Fs, nbits] = wavread('filename');
M=16;
modulated_sig=qammod(X,M);
but it keeps giving me an error saying
??? Error using ==> qammod at 39 Elements of input X must be integers in the range [0, M-1]
Risposta accettata
Walter Roberson
il 25 Mar 2011
You need to quantize, just like you did for your generated signal in your earlier versions.
2 Commenti
Walter Roberson
il 25 Mar 2011
http://www.mathworks.com/help/toolbox/comm/ref/qammod.html documents that if there are multiple rows in x that the columns will be processed independently, so it is fine to pass multiple columns to qammod. So just process the channels of the wav file through quantize independently and paste the result together:
qX = [quantiz(X(:,1),...,0:M-1), quantiz(X(:,2),...,0:M-1];
and pass qX to qammod.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Modulation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!