how shall i compare and carry the first column element to other column?
조회 수: 1 (최근 30일)
이전 댓글 표시
i have a matrix
A=[1 1 0 1;
1 0 0 1;
1 1 1 1]
but it must be AA= [1 1 0 1;1 1 0 1;1 1 0 1] so by comparing both where ever there is a bit error. i am considering a matrix having B=[1 1 1 1;1 1 1 1; 1 1 1 1] where where ever the bit error as 1 became 0 or 0 became 1 will be found there a amount of 0.3 will b deduced as here in first column as by adding we get 3 and in second after deducing the bit error amount its 3-2.7=0.3 will be added to rest correct bit. when once error occurs the next column changes will be taken place on the previous one. in above example i want the result as
B=[1 1+0.15 1.15+0.15 1.30;
1 1-0.30 0.7+0.15 0.85;
1 1+0.15 1.15-0.3 0.85]
B=[1 1.15 1.30 1.30;
1 0.7 0.85 0.85;
1 1.15 0.85 0.85]
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!