XOR operation
Show older comments
I=rand(1,N)>0.5 N=90 xor operation should done for each two bits . and out put should be corresponding two bit followed with result. pls help me
Accepted Answer
More Answers (1)
Walter Roberson
on 20 Jul 2011
I = reshape(rand(1,N)>0.5),2,[]).';
[I, xor(I(:,1),I(:,2))]
1 Comment
mahaveer hanuman
on 20 Jul 2011
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!