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

조회 수: 1 (최근 30일)
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]

채택된 답변

James Tursa
James Tursa 2016년 5월 13일
X = mod(sum(A,2),2);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Elementary Math에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by