Symbol Role More Information
>= Greater than or equal to ge
< Less than lt
<= Less than or equal to le
Logical Operators
Symbol Role More Information
& Logical AND and
| Logical OR or
&&
Logical AND (with short-
circuiting) Logical Operators:
Short-Circuit && ||
||
Logical OR (with short-
circuiting)
~ Logical NOT not
Special Characters
Symbol Symbol Name Role Description Examples
@ At symbol Function handle construction and reference
The @ symbol forms a handle to either the named function that follows the @ sign, or to the
anonymous function that follows the @ sign.
- “Create Function Handle” on page 13-2
Create a function handle to a named function:
fhandle = @myfun
Create a function handle to an anonymous function:
fhandle = @(x,y) x.^2 + y.^2;
@ At symbol Call superclass methods Use the @ symbol to call superclass methods from subclasses.
- “Call Superclass Methods on Subclass Objects”
Call the disp method of MySuper from a subclass:
disp@MySuper(obj)
Call the superclass constructor from a subclass using the object being constructed:
obj = obj@MySuper(arg1,arg2,...)
MATLAB Operators and Special Characters