How to compare each element of matrix having binary numbers?

조회 수: 6 (최근 30일)
N M Channabasavayya
N M Channabasavayya 2019년 4월 18일
댓글: N M Channabasavayya 2019년 4월 18일
let a=[1 0 1;0 0 0;1 1 1];
b=circshift(a,1);
this gives us the result
b=[1,1,1;1,0,1;0,0,0];
Now i want compare each elements of the matrix a with matrix b and if the elements are equal it should result as 1 else 0.
Then I want store the output of the compared matrices in an array,
Help me out in solving this.
Thank you.

채택된 답변

KSSV
KSSV 2019년 4월 18일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by