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 Center および File ExchangeElementary Math についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by