External Interfaces/API, MATLAB® Version 7.0.1 (R14SP1)

New features and changes introduced in this version are described here.

Function Handles in COM Event Callbacks

MATLAB® software now supports function handles as callbacks for Microsoft® ActiveX® objects. This example passes a function handle that maps to sampev to registerevent:

cd $matlabroot\toolbox\matlab\winfun
h = actxcontrol('mwsamp.mwsampctrl.2', [0 0 200 200]); 
registerevent(h, @sampev);            % Click the control.

Registering Events for COM Servers and Controls

With MATLAB 7.0.1, you can register events for COM servers as well as for COM controls.

Expanded Support for Web Services (SOAP and WSDL)

This version expands MATLAB support for Web services, that is, Simple Object Access Protocol (SOAP) and Web Services Description Language (WSDL). These are some of the key enhancements:

Specifying the Search Path for Sun™ Java™ Native Method DLLs

The mechanism that MATLAB uses to locate native method libraries that are required by Java™ has changed. MATLAB no longer uses system environment variables to define the paths to these libraries.

Compatibility Considerations

If you presently rely on the PATH (for Windows) or LD_LIBRARY_PATH (for UNIX) environment variables for this purpose, you will need to use the file librarypath.txt, as described below, in its place.

Specifying the Java™ Library Path

Java classes can dynamically load native methods using the Java method java.lang.System.loadLibrary("LibFile"). In order for the JVM™ software to locate the specified library file, the directory containing it must be on the Java Library Path. This path is established when MATLAB launches the JVM software at startup, and is based on the contents of the file

$matlab/toolbox/local/librarypath.txt

(where $matlab is the MATLAB root directory represented by the MATLAB keyword matlabroot).

You can augment the search path for native method libraries by editing the librarypath.txt file. Follow these guidelines when editing this file:

MATLAB® DDE Server Is Now Disabled By Default

To enable the DDE server start MATLAB with the /Automation option.

The outgoing MATLAB DDE commands (ddeinit, ddeterm, ddeexec, ddereq, ddeadv, ddeunadv, ddepoke) function normally without the MATLAB DDE server. See http://www.mathworks.com/support/solutions/data/1-Q4728.html? solution=1-Q4728 for more information.

Clearing MEX-Functions

The command clear mex now clears MEX-functions, but not M- and MEX- functions. Entering clear mex does not clear locked functions or functions that are currently in use. It does however clear breakpoints and persistent variables.

  


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