fliplr is a built-in function that requires one argument.
eye is a built-in function that can potentially take zero, one, or two arguments.
Assume x is a scalar or something.
In an expression like x + fliplr, MatCrab gives an error that no variable named fliplr can be found. However MATLAB interprets fliplr with no parentheses as if it were an attempted function call fliplr(). This yields an error since fliplr requires one argument.
Likewise x + eye is interpreted by MATLAB as x + eye(), which works since eye can be called with no arguments.
Example:
fliplr
is a built-in function that requires one argument.eye
is a built-in function that can potentially take zero, one, or two arguments. Assumex
is a scalar or something.In an expression like
x + fliplr
, MatCrab gives an error that no variable namedfliplr
can be found. However MATLAB interpretsfliplr
with no parentheses as if it were an attempted function callfliplr()
. This yields an error sincefliplr
requires one argument.Likewise
x + eye
is interpreted by MATLAB asx + eye()
, which works sinceeye
can be called with no arguments.