|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Matlab
| Method Summary | |
|---|---|
java.lang.Object |
evaluate(java.lang.String command,
java.lang.String resultName,
java.util.Map variableNameValueMap)
Helper method for above - automatically flushes variables. |
java.lang.Object |
evaluate(java.lang.String command,
java.lang.String resultName,
java.util.Map variableNameValueMap,
boolean flushVariables)
Evaluate a matlab string. |
java.lang.Object |
getVariable(java.lang.String varName)
Retrieve a variable from the Matlab engine. |
| Method Detail |
|---|
java.lang.Object evaluate(java.lang.String command,
java.lang.String resultName,
java.util.Map variableNameValueMap,
boolean flushVariables)
throws MatlabException
Map data = new HashMap();
data.add( "t", new Integer( 2 ) );
Object result = evaluate( "A = randn[1:5] * t", "A", data );
command - The command to be invokedresultName - The name of the variable containing the result.variableNameValueMap - All supporting data for the computation.flushVariables - Delete the variables at the end of the computation.
MatlabException - On error in the engine.
java.lang.Object evaluate(java.lang.String command,
java.lang.String resultName,
java.util.Map variableNameValueMap)
throws MatlabException
command - The command to be invokedresultName - The name of the variable containing the result.variableNameValueMap - All supporting data for the computation.
MatlabException - On error in the engine.
java.lang.Object getVariable(java.lang.String varName)
throws MatlabException
varName - The name of the variable to retrieve.
null if not available.
MatlabException - On error in the engine.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||