how to Perform Xor on Non Real matrix
1 次查看(过去 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 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!