I have the following code:
A = [1,2,3];B = [4,5,6,7];if size(A) ~= size(B) disp("not equal 1")else disp("equal 1")endif size(A) == size(B) disp("equal 2")else disp("not equal 2")end
This creates the following output:
equal 1not equal 2
Why does == work as expected, but ~= doesn't? Did I make a mistake?
Best Answer