how to Perform Xor on Non Real matrix

1 visualización (últimos 30 días)
Syed Asad
Syed Asad el 6 de Mzo. de 2016
Comentada: Walter Roberson el 6 de Mzo. de 2016
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

Respuestas (1)

Walter Roberson
Walter Roberson el 6 de Mzo. de 2016
When A and B are complex-valued, their xor is
xor( A ~= 0, B ~= 0)
  2 comentarios
Syed Asad
Syed Asad el 6 de Mzo. de 2016
Editada: Walter Roberson el 6 de Mzo. de 2016
can you please elaborate it ??
For Example , Let A = 1 + i1 + 0 +i0 and B = 0 + i1 + 1 +i1 then how i can perform A Xor B in Matlab
Walter Roberson
Walter Roberson el 6 de Mzo. de 2016
A = [1 + 1i, 0 + 0i];
B = [0 + 1i, 1 + 1i];
xor( A ~= 0, B ~= 0)
ans =
0 1

Iniciar sesión para comentar.

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by