I have done your suggestions and still get the same error >> x=-0.5, y=-2 if x<3 && y<3 && x>0 && y>0 disp (‘x and y are less than 3 but greater than 0’) elseif x<0 && y<0 disp (‘x and y are negative’) elseif x>3 y>3 disp (‘Either x or y is greater than 3’) else disp (‘None of the three conditions have been met’) end
x =
-0.5000
y =
-2
disp (‘x and y are less than 3 but greater than 0’)
|
Error: The input character is not valid in MATLAB statements
or expressions.