MFC calls MATLAB
by David Forstot
11 Feb 2009
Integrating MATLABĀ® and C++ within the Microsoft Foundation Classes (MFC) environment
|
Watch this File
|
| File Information |
| Description |
This demo highlights two ways of integrating MATLAB functionality into a MFC application written in C++. The first way uses the MATLAB Engine, an external interface that is part of core MATLAB. The second way uses MATLAB Compiler to create a C shared library from a MATLAB function foo.m. The advantage of using MATLAB Compiler is this solution can be deployed to end users that do not have MATLAB.
A simple C++/MFC dialog was created which calls into the MATLAB function in order to add the values of two numbers. The output is returned and displayed in the dialog.
The purpose of this example is to specifically show how to integrate MATLAB in the MFC framework
|
| Required Products |
MATLAB Compiler
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
| Other requirements |
Microsoft Visual Studio 2005 or newer |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com