how to Perform Xor on Non Real matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
I want to Perform Xor on Variable that contain both real and imaginary part, so can any one help me out as xorr give me an error
??? Error using ==> xor
Inputs must be real.
pl Help me
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 3월 6일
When A and B are complex-valued, their xor is
xor( A ~= 0, B ~= 0)
댓글 수: 2
Walter Roberson
2016년 3월 6일
A = [1 + 1i, 0 + 0i];
B = [0 + 1i, 1 + 1i];
xor( A ~= 0, B ~= 0)
ans =
0 1
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!