Filter löschen
Filter löschen

Exclusive or between two different matrix size ?

1 Ansicht (letzte 30 Tage)
I Made
I Made am 13 Mär. 2013
I have two matrix A and B where e.g
A < 1 x 500 >
B < 1 x 32 >
i wanted to perform xor, but i wanted xor(A,B) only the first 32 element of A xor B so we don't have matrix size problem. The size of A and B is dynamic, basiccaly i wanted to perform xor(A,B) where the elemen of A that processed is the first elemen until it reach B size ? how do i perform xor like that so that the output become :
C < 1 x 32 >
can anyone help?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Mär. 2013
C = xor(A, B(1:length(A)))

Weitere Antworten (0)

Kategorien

Mehr zu Descriptive Statistics finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by