Thread Subject: AWGN channel - Reed Solomon

Subject: AWGN channel - Reed Solomon

From: magouliana Apostolopoulos

Date: 6 Jul, 2008 21:43:02

Message: 1 of 2

Hi,
I am quite new to Matlab and I am trying to implement a AWGN
channel ,at the moment, for Reed-Solomon codes
My code is the following:

m=4;
k=9;
for SNRdB = 1: 1: 15;
data = randint(1,k,2^m-1);
message = gf(data,m);
enc = rsenc(message,2^m-1,k);
c=randn(1,2^m-1);
stdDev = 1/sqrt(2*10^(SNR/10));
noise = c*stdDev*sqrt(2^m-1/k);
cnoisy = enc + noise;
error = gf(cnoisy,m);
end

The problem I think is when the variable 'error ' is called
because is the 'noise' is an array but the 'cnoisy' is a
Galois field array, also an error occurs when the variable
'cnoisy' is called! (independently from the previous)
But I don't know how to make it work.
Thanks a lot.

Subject: AWGN channel - Reed Solomon

From: Matt

Date: 30 Jul, 2008 22:33:02

Message: 2 of 2

Tikanis Mr. Apostolopoulous?

You can convert the variable "enc" from a Galois field data
type to a floating point data type like this:

   new_enc = enc.x;

Also, don't you want to insert a modulator in there?

   modulated_signal = some_modulator(new_enc);
   noisy_signal = modulated_signal + noise;

Good luck,
Matheos from USA

"magouliana Apostolopoulos" <helo@in.gr> wrote in message
<g4re96$svh$1@fred.mathworks.com>...
> Hi,
> I am quite new to Matlab and I am trying to implement a
AWGN
> channel ,at the moment, for Reed-Solomon codes
> My code is the following:
>
> m=4;
> k=9;
> for SNRdB = 1: 1: 15;
> data = randint(1,k,2^m-1);
> message = gf(data,m);
> enc = rsenc(message,2^m-1,k);
> c=randn(1,2^m-1);
> stdDev = 1/sqrt(2*10^(SNR/10));
> noise = c*stdDev*sqrt(2^m-1/k);
> cnoisy = enc + noise;
> error = gf(cnoisy,m);
> end
>
> The problem I think is when the variable 'error ' is
called
> because is the 'noise' is an array but the 'cnoisy' is a
> Galois field array, also an error occurs when the variable
> 'cnoisy' is called! (independently from the previous)
> But I don't know how to make it work.
> Thanks a lot.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com