Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Where is the mistake ?
Replies: 2   Last Post: Mar 24, 2013 8:10 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
sam

Posts: 27
Registered: 8/19/12
Where is the mistake ?
Posted: Mar 24, 2013 7:00 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello every one, please where is the the mistake in this commands ?

-----------------------

V0=[0 0 0 0];
e=0;
RE=[1 0 1 0;0 0 0 1]
if ((RE(1,:)== V0) | (RE(2,:) == V0)) %% TEST ROUTER E
e=e+1
else
PP1=RE(1,:)
PP3=RE(2,:)
PP2=xor(PP1,PP3)
RE=[PP1;PP2]
end

--------------
After run the program the result is :
RE =

1 0 1 0
0 0 0 1

e =

1



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.