0

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)

3
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by mahesh.g.4u
0

I have a similar problem with wavread(). Have yet to receive any inputs whatsoever. if i got it i'd let you konw.

cheers.

0

hii..actually i m caluclating the throught put using matlab...can any one help for me....
i caluclating throughput for both roundrobin scheduling n quantized prportional fair scheduling
..
will any one help me..
its so imp for meee


is so plz mail ur reply to mahesh.g.4u@gmail.com

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.