Detect the error position in a vector and correct it (Matlab)
Mostrar comentarios más antiguos
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 comentarios
Adam Danz
el 18 de Mzo. de 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
el 18 de Mzo. de 2021
Adam Danz
el 18 de Mzo. de 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
el 18 de Mzo. de 2021
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!