how to do bitxor operation of two 1*255 matrix
조회 수: 1 (최근 30일)
표시 이전 댓글
h1 =1x255 logical
h3 = 1x255 logical
howto do bitxor of h1 and h3
댓글 수: 0
답변 (2개)
James Tursa
2018년 11월 30일
편집: James Tursa
님. 2018년 11월 30일
It's not entirely clear to me what operation you really want, but if the elements of h1 and h2 represent "bits", then you could just do this:
result = (h1 ~= h2); % equivalent of xor between the elements of h1 and h2
If h1 and h2 don't have the same number of elements, then that is a different problem that you will need to fix before doing the xor operation.
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!