MatlabTypeConverter¶
-
public class
MatlabTypeConverter
¶ Converts between MATLAB and Java types. Currently only supports numeric arrays. This class is unconditionally thread-safe.
Author: Joshua Kaplan
Constructors¶
MatlabTypeConverter¶
-
public
MatlabTypeConverter
(MatlabProxy proxy)¶ Constructs the converter.
Parameters: - proxy –
Methods¶
getNumericArray¶
-
public MatlabNumericArray
getNumericArray
(String arrayName)¶ Retrieves the MATLAB numeric array with the variable name
arrayName
.Parameters: - arrayName –
Throws: - matlabcontrol.MatlabInvocationException – if thrown by the proxy
Returns: the retrieved numeric array
setNumericArray¶
-
public void
setNumericArray
(String arrayName, MatlabNumericArray array)¶ Stores the
array
in MATLAB with the variable namearrayName
.Parameters: - arrayName – the variable name
- array –
Throws: - matlabcontrol.MatlabInvocationException – if thrown by the proxy