Path: news.mathworks.com!not-for-mail
From: "Shobana " <manoharanshobana@ymail.com>
Newsgroups: comp.soft-sys.matlab
Subject: doubts in xor gate in decoder circuit
Date: Thu, 27 Dec 2012 06:02:10 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <kbgo92$qga$1@newscl01ah.mathworks.com>
Reply-To: "Shobana " <manoharanshobana@ymail.com>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1356588130 27146 172.30.248.48 (27 Dec 2012 06:02:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 27 Dec 2012 06:02:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3607161
Xref: news.mathworks.com comp.soft-sys.matlab:785456

hai.....
   n1 = xor(m3,m2);
  n2 = xor(m4,m3);
  n3 = xor(m5,m4);
  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]
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.

    I tried this with xnor but it is not working
     If anybody knows please reply me.
Thanks in advance