Contents Previous Next Subchapters

Differences Between MATLAB® and Mlmode Languages

Description
The following table lists some of the differences between the Mlmode language and the MATLAB® language.
Symbol Difference
[] new lines inside of brackets is ok except at command line
[]= a submatrix cannot be the target for a multiple assignment
nargout number of return values is never less than one
feval this is a keyword and not an intrinsic function
eval only returns one value and its second argument is ignored
+ logical and character operands for +, -, *, .*, and ./ have an integer instead of double result.
if you must have an end of line or ; after the expression and before the first statement executed with in and if block.
while you must have an end of line or ; after the expression and before the first statement executed with in and while block.
delete does not support wild cards
version return value is more descriptive than just the version number
mesh the mesh and surface plots have a different appearance
functions m-files defining functions cannot begin with comments