Trying to program a game where the user has to guess a 2D location in space (x and y coordinates have to be equal), but im having an issue with comparing equality.
A simplified version is below. This displays true, despite the 2 vectors not being equal because the second element (4) is equal. So how do I make this only disp true when BOTH elements of each vector are equal?
if [3 4]~=[2 4] disp("False");else disp("True");end
Best Answer