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!