Language and Programming
4-5
Conversion changes of out-of-range numbers passed to Java methods
that take integers
MATLAB R2013b changes the way it converts out-of-range values for the following Java
integer types:
• Signed 32-bit integer (Java int, short or byte parameters)
• Signed 64-bit integer (Java long parameters)
For a description of the conversion, see Converting Numbers to Integer Arguments.
Compatibility Considerations
If your MATLAB code can pass out-of-range values to Java methods with integer type
arguments, the results might change. For example, the following value, val, is out-of-
range for the argument to java.lang.Integer.
val = uint32(2^31);
java.lang.Integer(uint32(val))
In previous versions of MATLAB, the result is:
ans =
-2147483648
As of MATLAB R2013b, the result is:
ans =
-1
Additional properties for mex.getCompilerConfigurations
function
The mex.getCompilerConfigurations function returns the following new properties:
• ShortName — Character string used to identify options file for the compiler
• MexOpt — Name and full path to options file
• Priority — The priority of this compiler
Comments to this Manuals