Detect the error position in a vector and correct it (Matlab)
이전 댓글 표시
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
Adam Danz
2021년 3월 18일
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
2021년 3월 18일
Adam Danz
2021년 3월 18일
> 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
2021년 3월 18일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Time Series Events에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!