Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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]

Respuesta aceptada

James Tursa
James Tursa el 13 de Mayo de 2016
X = mod(sum(A,2),2);

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by