Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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]

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by