how to perform bitwise logical xor for two matrices having 13 bit binary data each?
Mostrar comentarios más antiguos
I have two cell arrays with each element having 13 bit binary strings. How to perform bitwise XOR for these two cell arrays.
For eg: consider two 3x3 cell arrays A and B
A= '1011111111011' '1011111111011' '1011111111011'
'1100000111111' '1100000111111' '1100000111111'
'1100000001000' '1100000001000' '1100000001000'
B= '1100001001010' '1100001001010' '1100001001010'
'1011111100010' '1011111100010' '1011111100010'
'1100000001110' '1100000001110' '1100000001110'
My desired output is as below
C=A XOR B
ie C(1,1)= '1011111111011' XOR '1100001001010'
C(1,1)= '0111111011001'
Similarly for all the elements a bitwise XOR should be performed
2 comentarios
Guillaume
el 29 de En. de 2015
Your example shows two cell arrays containing strings (made up of characters '0' and '1'), not two matrices containing binary data (which is a just numbers)
So, do you have matrices or cell arrays, and do they contain strings or numbers?
Abirami
el 29 de En. de 2015
Respuesta aceptada
Más respuestas (2)
Ramya M S
el 1 de Feb. de 2017
0 votos
how can i xor 4 bit and 8 bit data?
Dr. Suneetha CH
el 18 de Ag. de 2020
0 votos
how to perform bitwise xor successively? i mean a XOR b XOR c .....
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!