public class MATLABScriptEngine extends AbstractScriptEngine
NB: we use MatlabControl to interpret MATLAB scripts. There are some limitations of this API:
eval
call in MATLAB. If you are unfamiliar
with the notation for converting traditionally multi-line commands, such as
an if...else
block, to single-line, each logical statement is
replaced by a comma. For example, you can write: if 1<2, a=3, end
...
engineScopeBindings, scriptContext
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
Constructor and Description |
---|
MATLABScriptEngine(Context context) |
Modifier and Type | Method and Description |
---|---|
Object |
eval(Reader reader) |
Object |
eval(String script) |
createBindings, eval, eval, eval, eval, get, getBindings, getContext, getFactory, log, put, setBindings, setContext, setLogService
public MATLABScriptEngine(Context context)
public Object eval(String script) throws ScriptException
eval
in interface ScriptEngine
eval
in class AbstractScriptEngine
ScriptException
public Object eval(Reader reader) throws ScriptException
eval
in interface ScriptEngine
eval
in class AbstractScriptEngine
ScriptException
Copyright © 2015–2022 SciJava. All rights reserved.