how to Perform Xor on Non Real matrix
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Walter Roberson
il 6 Mar 2016
When A and B are complex-valued, their xor is
xor( A ~= 0, B ~= 0)
2 Commenti
Walter Roberson
il 6 Mar 2016
A = [1 + 1i, 0 + 0i];
B = [0 + 1i, 1 + 1i];
xor( A ~= 0, B ~= 0)
ans =
0 1
Vedere anche
Categorie
Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!