Hi,, I am trying to do the below problem. Any kind of help would be appreciated.TIA

1 visualizzazione (ultimi 30 giorni)
My matrix is A=[1 1 0 1 ; 1 0 0 1; 1 0 1 0]
I will have to XOR the elements in the row so that it gives the result [1; 0; 0]

Risposta accettata

James Tursa
James Tursa il 13 Mag 2016
X = mod(sum(A,2),2);

Più risposte (0)

Categorie

Scopri di più su Elementary Math in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by