MATLAB Compiler | ![]() ![]() |
MATLAB Compiler 2.3
MATLAB Compiler 2.3 allows you to create Microsoft Excel components from MATLAB M-files. This Windows-only feature translates a collection of M-files into a single Microsoft Excel add-in. Both C and C++ code generation are supported.
To support the creation of these components, the following Compiler options have been added or enhanced:
-B
) has been enhanced so that you can include replacement parameters for Compiler options that accept names and version numbers and they will be expanded properly.
-b,
causes the Compiler to generate a Visual Basic (.bas
) file that contains the Microsoft Excel Formula Function interface to a Compiler-generated COM object.
-i
, causes the Compiler to include only the M-files that are specified on the command line as exported interfaces.
Note To create Microsoft Excel components with the MATLAB Compiler, you must have the MATLAB Excel Builder product installed on your system. |
MATLAB Compiler 2.1
MATLAB Compiler 2.1 supports much of the functionality of MATLAB 6. The new features of the Compiler are
The MATLAB Compiler provides a series of optimizations that can help speed up your compiled code. These optimizations are on by default unless you are building a debuggable version.
Folding Array Constants. Folds scalar and nonscalar valued array constants.
One- and Two-Dimensional Array Indexing. Uses faster routines that are optimized for simple indexing.
for-loops. Optimizes for
- loops with integer starts and increments.
Conditional Expressions. Reduces the MATLAB conditional operators to scalar C conditional operators when both operands are known to be integer scalars.
For more information on these optimizations, see Optimizing Performance.
mlib
files make it possible to produce a shared library out of a toolbox and then compile M-files that make calls into that toolbox. Specifying an mlib
file tells the MATLAB Compiler to link against the mlib
file's corresponding shared library whenever it needs to use any of the functions found in that library. The mlib
file and its corresponding shared library file must be located within the same directory. For more information about mlib
files, see mlib Files.
Integer Data Types. The signed and unsigned integer arrays int8
, int16
, int32
, uint8
, uint16
, and uint32
are now supported, which provides improved support for the Image Processing Toolbox.
Function Handles. A function handle is a new MATLAB data type that captures all the information about a function that MATLAB needs to evaluate it. The MATLAB Compiler supports function handles. For more information on function handles, see the function handle
reference page.
Improved Support for load and save
load
and save
are now supported when they do not list the variables to be loaded or saved. They work by loading or saving all variables that are defined or used within the function.
Dynamically Linking in MEX-Files in the Stand-Alone Environment
Specifying -h
or providing the name of a function on the command line will automatically link in any referenced MEX-files.
MATLAB Add-In for Visual Studio®
This add-in integrates the MATLAB Compiler into Visual C/C++ Version 5 or 6. To learn more about the MATLAB add-in for Visual Studio, see Using an Integrated Development Environment.
Faster C/C++ Math Library Applications
The improved performance of the C/C++ Math Library is due in part to the added scalar accelerated versions of many of the library functions.
pause and continue. These commands are now supported.
eval and input. eval
and input
are supported for strings that do not contain workspace variables.
![]() | New Features | Compiler Licensing Changes | ![]() |