Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

External Interfaces/API, MATLAB Version 7.8 (R2009a)

New features and changes introduced in this version are:

New Interface to Microsoft .NET Framework

The interface to .NET allows you to bring .NET assemblies into the MATLAB environment, to construct objects from classes contained in the assemblies, and to call methods on these objects. For complete documentation of this feature, see MATLAB Interface to .NET Framework. For an overview of the .NET interface, watch this video demo.

Expanded Platform Support Added for MATLAB Serial Port

MATLAB Serial Port is now supported on the following platforms:

Changes To Compiler Support

New Compiler Support

MATLAB Version 7.8 (R2009a) supports these new compilers for building MEX-files:

Microsoft Windows (64- and 32-bit) Platforms.  

Linux (64- and 32-bit) Platforms.  

Apple Macintosh (32-bit) Platforms.  

Compiler Support To Be Phased Out

The following compilers are supported in Version 7.8 (R2009a), but will not be supported in a future version of MATLAB:

Windows (32-bit) Platforms.  

Windows (64-bit) Platforms.  

Solaris SPARC (64-bit) Platforms.  

Discontinued Compiler Support

MATLAB no longer supports the following compilers:

Windows (32-bit) Platforms.  

Windows (64-bit) Platforms.  

Apple Macintosh (32-bit) Platforms.  

Compatibility Considerations.   To ensure continued support for building your C/C++ programs, consider upgrading to another supported compiler. For an up-to-date list of supported compilers, see the Supported and Compatible Compilers Web page.

Do Not Use mxFree to Destroy mxArrays

It is improper to call mxFree on an mxArray. Previously, to remedy misleading statements in older documentation, under limited circumstances, MATLAB issued a warning in code that made this error. MATLAB no longer issues the warning.

Compatibility Considerations

The correct function to use to release memory for an mxArray is mxDestroyArray. Calling mxFree on an mxArray could cause memory corruption, which might result in a segmentation violation.

Cannot Build MEX-Files Using MATLAB Version 5 API

MATLAB does not support the -V5 option to the mex function.

Compatibility Considerations

You are no longer able to build a MEX-file using the MATLAB Version 5 API. If you use any of the functions shown in the Obsolete Functions: MX Array Manipulation table, you must replace them with functions from the Replacement column, if available. These obsolete functions were deprecated when MATLAB Version 6 was released over 5 years ago.

MEX-Files Calling BLAS or LAPACK Functions Must Be Updated On 64-Bit Platforms

You must update any MEX-file that calls functions in the BLAS or LAPACK math packages on 64-bit platforms. The change occurs as a result of updated support, described in 64-bit Support in LAPACK and BLAS. Existing MEX-files generated in previous versions of MATLAB will result in undefined behavior (likely crashes), if run in R2009a. The previous versions pass 32-bit integer arguments, but the math routines now read and write to 64 bits of memory. The results you see depend on what is stored in the subsequent 32 bits of memory.

Compatibility Considerations

On 64-bit platforms, you must use 64-bit integers for all input and output variables when calling LAPACK and BLAS routines in C and Fortran source MEX-files. Use the mwSignedIndex type for platform-independent code.

Object .o Files Saved on Macintosh Systems for Debugging

MATLAB saves object .o files when compiling MEX-files on Apple Mac OS® Version 10.5 systems so that you can use source-level debugging.

Run-Time Libraries Required for Applications Built with Microsoft Visual Studio 2008 Compiler

If you distribute a MEX-file, an engine application, or a MAT-file application built with the Visual Studio 2008 compiler, you must provide the Visual C++ run-time libraries. These files are required to run applications developed with Visual C++ on a computer that does not have Visual C++ 2008 installed. For information on locating the Microsoft Visual C++ 2008 Redistributable Package (x86), containing vcredist_x86.exe and vcredist_x64.exe, consult your Microsoft documentation.

New Features for Shared Library Interface

New Java Thread Safety Functions

Use the following new functions to work with Sun Java objects on the Event Dispatch Thread (EDT).

FunctionDescription
javaObjectEDT

Construct Java object on EDT

javaMethodEDT

Call Java method from EDT

Improved Robustness of Web Services Functions

The underlying technology used in the createClassFromWsdl and parseSoapResponse functions was modified to better ensure support for WSDL and SOAP standards.

Compatibility Considerations

There was no intended change to functionality or results of the createClassFromWsdl and parseSoapResponse functions, which The MathWorks verified through testing. There are many variations among WSDL files and Web services and they cannot all be tested. Therefore, it is possible that your results using the createClassFromWsdl and parseSoapResponse functions in this version could differ from a previous version.

Ensure that your results using createClassFromWsdl and parseSoapResponse functions are as expected.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS