functionit is interpreted as a function. Otherwise it is interpreted as a script .
The syntax for defining a function in Mlmode is similar to the multiple return syntax in O-Matrix mode with the exception that the
localoption is not available and if there is only one return variable, it need not be enclosed in brackets. To be specific, the possible forms for a function definition are
functionkeyword is a the beginning of the file and
EOFdenotes the end of the file.
temp.min the current working directory contains the text
and you enter
function y = temp(x)
y = 2 * x;
O-Matrix will respond