Package matlabcontrol.extensions
Class MatlabTypeConverter
- java.lang.Object
-
- matlabcontrol.extensions.MatlabTypeConverter
-
public class MatlabTypeConverter extends java.lang.ObjectConverts between MATLAB and Java types. Currently only supports numeric arrays.
This class is unconditionally thread-safe.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description MatlabTypeConverter(MatlabProxy proxy)Constructs the converter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatlabNumericArraygetNumericArray(java.lang.String arrayName)Retrieves the MATLAB numeric array with the variable namearrayName.voidsetNumericArray(java.lang.String arrayName, MatlabNumericArray array)Stores thearrayin MATLAB with the variable namearrayName.java.lang.StringtoString()Returns a brief description of this converter.
-
-
-
Constructor Detail
-
MatlabTypeConverter
public MatlabTypeConverter(MatlabProxy proxy)
Constructs the converter.- Parameters:
proxy-
-
-
Method Detail
-
getNumericArray
public MatlabNumericArray getNumericArray(java.lang.String arrayName) throws MatlabInvocationException
Retrieves the MATLAB numeric array with the variable namearrayName.- Parameters:
arrayName-- Returns:
- the retrieved numeric array
- Throws:
MatlabInvocationException- if thrown by the proxy
-
setNumericArray
public void setNumericArray(java.lang.String arrayName, MatlabNumericArray array) throws MatlabInvocationExceptionStores thearrayin MATLAB with the variable namearrayName.- Parameters:
arrayName- the variable namearray-- Throws:
MatlabInvocationException- if thrown by the proxy
-
toString
public java.lang.String toString()
Returns a brief description of this converter. The exact details of this representation are unspecified and are subject to change.- Overrides:
toStringin classjava.lang.Object- Returns:
-
-