jamesjuett / MatCrab

A program visualization tool for Matlab
GNU Lesser General Public License v3.0
0 stars 0 forks source link

IdentifierExpression behavior differs from MATLAB #6

Open jamesjuett opened 5 years ago

jamesjuett commented 5 years ago

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. 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.