Detect the error position in a vector and correct it (Matlab)
Ältere Kommentare anzeigen
Dear members;
I have the code word C of length 'M' and I have also the received vector V after decoding of the same length 'M' as C
For example:
V=[1 0 0 1 0 1 0 1 0 0]
C=[1 1 0 1 0 0 0 1 0 0]
I want firstly detecting the position of each bold bit of V and than correct it by adding 1 to those bits (because in mod2: 0+1=1 and 1+1=0) in order to obtain V=C
How can I do that please
4 Kommentare
Adam Danz
am 18 Mär. 2021
Maybe I'm not understanding the requirements but the are no bold values in Matlab. You made them bold in the text editor but in Matlab they are just 1s and 0s.
Afluo Raoual
am 18 Mär. 2021
Adam Danz
am 18 Mär. 2021
> I want firstly detecting the position of each bold bit of V
Ah, so what you really want to do is find the index of the vector where V(i) is not equal to C(i).
Afluo Raoual
am 18 Mär. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Time Series Events finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!