operators-comparison
Programming
Comparison operators return 1 (true) or 0 (false). == tests equality, ~= tests inequality. < > <= >= test ordering. All work element-wise on arrays.
Syntax
a == b
a ~= b
a < b
a > b
a <= b
a >= b
Examples
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab