how shall i compare and carry the first column element to other column?

조회 수: 2 (최근 30일)
suchismita
suchismita 2014년 5월 5일
편집: Matt J 2014년 5월 5일
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개)

카테고리

Help CenterFile Exchange에서 Language Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by