User`s guide
Language and Programming
6-11
• To convert a .NET jagged array to a MATLAB array, see How MATLAB Handles
Jagged Arrays.
• To convert a MATLAB array to a .NET jagged array, see Pass MATLAB Arrays as
Jagged Arrays.
MATLAB does not support:
• Autoconversion of char or cell arrays to jagged array arguments. For more
information, see Call .NET Method with System.String Jagged Array Arguments.
• Autoconversion of MATLAB arrays to multidimensional jagged array arguments.
For more information, see Call .NET Method with Multidimensional Jagged Array
Arguments.
Java exceptions accessible to MATLAB code
If you call a Java method from MATLAB, and that code throws an exception, use the
matlab.exception.JavaException class to handle the exception in MATLAB.
Ability to add jar files to static Java class path
To use third-party Java libraries in MATLAB, you can control the Java class path and
native library path by creating javaclasspath.txt and javalibrarypath.txt files.
For more information, see The Static Path and Locating Native Method Libraries.
Preservation of string functions for backwards compatibility
The R2010a Release Notes originally stated that the isstr, setstr, str2mat,
strread, strvcat, and textread functions would be removed in a future release. As of
R2012b, there are no plans to remove these functions. However, use of these functions is
not recommended.
Function Recommended Modification
isstr Replace all existing instances of isstr with
ischar.
setstr Replace all existing instances of setstr with
char.
str2mat Replace all existing instances of str2mat with
char.