Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (bgrg007):

else if (syndrome(1,:)==0) & (position~=[0; 0; 0]) the above statement is in matlab. Am i using the else if and the 'and' operator correctly? syndrome and position are matrices.

OpenStudy (e.mccormick):

Are you trying to use a logical operator? http://www.mathworks.com/help/matlab/logical-operations.html

OpenStudy (bgrg007):

yea, to satisfy both conditions. But for now, my program worked with just first condition. I'll have to learn about it later. thank you.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!