hi everyone,
i'm trying to develope a MATLAB code for error performance in various
modulation and demodulation,but unfortunately,i get stuck in it,seems
that i got a problem for calculating the errors.I'm trying to use QAM
for wave(audio) file and calculate its error.As below is my prototype
code,it give syntax error for biterr,and i don't know where exactly
the mistake is,can you help me with this? I very appreciated for the
help.....
y = wavread('D:\GREAT SONGS\CRAWLING3.wav')
n=4;
x = uencode(y,n)
n=4;
y = dec2bin(x,n)
z = reshape(y.',prod(size(y)),1);
M = 16;
a = qammod(x,M);
EbNo = 10;
nsamp = 1;
k=4;
snr = EbNo + 10*log10(k) - 10*log10(nsamp);
ynoisy = awgn(a,snr,'measured');
scatterplot(ynoisy);
b = qamdemod(ynoisy,M);
n=4;
c = dec2bin(b,n)
d = reshape(c.',prod(size(c)),1);
[num,rt]= symerr(a,b)
[number_of_errors,bit_error_rate] = biterr(z,d,'overall')
Fs=8000;
wavplay(y,Fs)