A = 4; C = [3 6 9 12]; D = [2 4 8 16]; A > 2 && C > D How come i get an error?
J Thread Starter Judas543 Joined Jan 26, 2010 60 May 4, 2010 #1 A = 4; C = [3 6 9 12]; D = [2 4 8 16]; A > 2 && C > D How come i get an error?
B blah2222 Joined May 3, 2010 582 May 5, 2010 #2 Judas543 said: A = 4; C = [3 6 9 12]; D = [2 4 8 16]; A > 2 && C > D How come i get an error? Click to expand... Could you be more specific with your question?
Judas543 said: A = 4; C = [3 6 9 12]; D = [2 4 8 16]; A > 2 && C > D How come i get an error? Click to expand... Could you be more specific with your question?
G Ghar Joined Mar 8, 2010 655 May 6, 2010 #3 I think the problem is that && is a logical AND while C > D will return a matrix. Try using & for bitwise AND. Not sure what result you'll get though...
I think the problem is that && is a logical AND while C > D will return a matrix. Try using & for bitwise AND. Not sure what result you'll get though...