Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
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]

Akzeptierte Antwort

James Tursa
James Tursa am 13 Mai 2016
X = mod(sum(A,2),2);

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by