http://www.mathworks.com/matlabcentral/newsreader/view_thread/325421
MATLAB Central Newsreader  doubts in xor gate in decoder circuit
Feed for thread: doubts in xor gate in decoder circuit
enus
©19942014 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://www.mathworks.com/images/membrane_icon.gif

Thu, 27 Dec 2012 06:02:10 +0000
doubts in xor gate in decoder circuit
http://www.mathworks.com/matlabcentral/newsreader/view_thread/325421#894363
Shobana
hai.....<br>
n1 = xor(m3,m2);<br>
n2 = xor(m4,m3);<br>
n3 = xor(m5,m4);<br>
n4 = xor(xor(m5,m4),xor(m3,m1)), where [m5 m4 m3 m2 m1] = [0 1 0 1 0] then we get [n1 n2 n3 n4] = [0 0 0 1]<br>
After i have to compare this value with another vector as d =[0000] here the 4th bit get differs.So in this case we need to change the value of (m1,m2,m3,m4,m5) in such a manner to get [ n1 n2 n3 n4 ]is equal to 0000.<br>
<br>
I tried this with xnor but it is not working<br>
If anybody knows please reply me.<br>
Thanks in advance<br>

Thu, 27 Dec 2012 14:35:08 +0000
Re: doubts in xor gate in decoder circuit
http://www.mathworks.com/matlabcentral/newsreader/view_thread/325421#894387
Roger Stafford
"Shobana " <manoharanshobana@ymail.com> wrote in message <kbgo92$qga$1@newscl01ah.mathworks.com>...<br>
> hai.....<br>
> n1 = xor(m3,m2);<br>
> n2 = xor(m4,m3);<br>
> n3 = xor(m5,m4);<br>
> n4 = xor(xor(m5,m4),xor(m3,m1)), where [m5 m4 m3 m2 m1] = [0 1 0 1 0] then we get [n1 n2 n3 n4] = [0 0 0 1]<br>
> After i have to compare this value with another vector as d =[0000] here the 4th bit get differs.So in this case we need to change the value of (m1,m2,m3,m4,m5) in such a manner to get [ n1 n2 n3 n4 ]is equal to 0000.<br>
> <br>
> I tried this with xnor but it is not working<br>
> If anybody knows please reply me.<br>
> Thanks in advance<br>
          <br>
I don't understand what it is you are trying to do, but your statement that "where [m5 m4 m3 m2 m1] = [0 1 0 1 0] then we get [n1 n2 n3 n4] = [0 0 0 1]" is incorrect, given your definitions of n1, n2, n3, and n4. With these values of [m5 m4 m3 m2 m1] you would get [n1 n2 n3 n4] = [1 1 1 1].<br>
<br>
With your current definition of the n's all m's must be the same to get [n1 n2 n3 n4] = [0 0 0 0], either all 0's or all 1's. Please explain with greater clarity what it is you are attempting to do  what is it you wish to change, the definition of the n's or the values of the m's?<br>
<br>
Roger Stafford