how shall i compare and carry the first column element to other column?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!