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, scriptContextARGV, 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, setLogServicepublic MATLABScriptEngine(Context context)
public Object eval(String script) throws ScriptException
eval in interface ScriptEngineeval in class AbstractScriptEngineScriptExceptionpublic Object eval(Reader reader) throws ScriptException
eval in interface ScriptEngineeval in class AbstractScriptEngineScriptExceptionCopyright © 2015–2022 SciJava. All rights reserved.