You are on page 1of 10

Deploying MATLAB applications

Deploying MATLAB applications


• Programs developed in MATLAB can be translated into
executables, components, or libraries using the MATLAB
Compiler.
• Easy integration into other environments (Excel, C/C++, Java,
.NET).
• Distribution as stand-alone applications.
Integrating MATLAB with Excel
• Accessing MATLAB form an Excel spreadsheet
– MATLAB
– Spreadsheet Link EX

• Deploying MATLAB as an Excel add-in


– MATLAB
– MATLAB Compiler
– MATLAB Builder EX
Spreadsheet Link EX
• Exchange data between MATLAB and Excel
• Take advantage of familiar Excel interface
• Access computational speed and visualization
capabilities of MATLAB
• Execute any MATLAB function directly from Excel
Spreadsheet Link EX
• Excel used as front end to MATLAB
• MATLAB must be installed on end-user machine
• Spreadsheet Link EX provides data management functions to
copy data between Excel and MATLAB and to execute MATLAB
commands from Excel
• Access MATLAB through:
– Buttons
– Functions within Excel
– Functions within Macros
Spreadsheet Link EX
• Matlabfcn Evaluate MATLAB command given Excel data
• Matlabsub Evaluate MATLAB command given Excel data and
designate output location
• MLAppendMatrix Create or append MATLAB matrix with data from
Excel worksheet
• MLDeleteMatrix Delete MATLAB matrix
• MLEvalString Evaluate command in MATLAB
• MLGetMatrix Write contents of MATLAB matrix in Excel
worksheet
• MLPutMatrix Create or overwrite MATLAB matrix with data from
Excel worksheet
• MLGetVar Write contents of MATLAB matrix in Excel VBA
variable
• MLPutVar Create or overwrite MATLAB matrix with data from
Excel VBA variable
MATLAB Builder EX
• Packages MATLAB applications as Excel add-ins

• Enables royalty-free deployment of Excel add-ins that run


independently of MATLAB

• MATLAB does not need to be available on the target user’s


desktop. End users only need to install the MATLAB
Component Runtime (MCR) on their machines.

• The MCR provides complete support for all features of the


MATLAB language and most related toolboxes.
MATLAB Builder EX
• Encryption of MATLAB functions

• Automatically packages MATLAB functions as DLL and


generates VBA wrapper functions

• Automatically converts between Excel data types and MATLAB


array data
Deploying MATLAB applications to Excel

MATLAB

Toolboxes
MATLAB
Compiler
MATLAB End-User
1 MATLAB Runtime
Desktop Machine
Application (MCR)

3
MATLAB Compiler

MATLAB Builder EX

2 .dll .bas .dll .bas


Getting started with
MATLAB Builder EX:

• MATLAB
• MATLAB Compiler and MATLAB Builder EX
• Compatible compiler, e.g. Microsoft Visual C++ 2008
Express Edition (free)

You might also like