Reed-Solomon decoding (Getting all the bits instead of just the message)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Das Siddharth
am 11 Jun. 2021
Beantwortet: Aghamarsh Varanasi
am 14 Jun. 2021
m = 3;
n = 7;
k = 3;
message = [0 1 1];
msg = gf(message,3);
code = rsenc(msg,n,k);
errors = gf([0 1 1 0 0 0 0],m);
noisy = code + errors.x;
[rxcode , cnum] = rsdec(noisy,n,k);
In this small example I have showed what I am doing. At the end I get an answer which is the message that I sent (which is absolutely fine). Is there anyway I can get the corrected message as 7 bit (meaning the message and the parity bits) in this case with the flipped bits corrected instead of just "[0 1 1]" as the answer ?
0 Kommentare
Akzeptierte Antwort
Aghamarsh Varanasi
am 14 Jun. 2021
Hi Das,
You can get the corrected code in the format of the input to the function rsdec by using the third output argumet of the function.
For Example,
[rxcode , cnum, ccode] = rsdec(noisy,n,k);
The variable 'ccode' contains the data in the 7-bit format, the message and the parity bits.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Error Detection and Correction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!