Be the first to rate this file! 104 downloads (last 30 days) File Size: 3.33 KB File ID: #21805

Embedded MATLAB Example: Using eml.ceval to generate a MEX-Function

by Rick Rosson

 

17 Oct 2008 (Updated 20 Oct 2008)

Code covered by BSD License  

This example shows how to generate a MEX-Function from existing C-code using Embedded MATLAB instead

Download Now | Watch this File

File Information
Description

The advantage of this approach, which uses the Embedded MATLAB™ Coder (EMLC) to generate a MEX Function instead of the MEX command, is that EMLC automatically generates not only the core function, but also the wrapper function that provides the interface between MATLAB® and the compiled function.

To build a MEX function, simply type
   
   build mex

at the MATLAB Command Prompt.

Please note: This is an initial version of this example. I will be updating this submission frequently during the next few months.

Required Products Real-Time Workshop
MATLAB release MATLAB 7.7 (R2008b)
Zip File Content  
Other Files ceval_01_int2bin8/build.m,
ceval_01_int2bin8/calc_int2bin8.c,
ceval_01_int2bin8/calc_int2bin8.h,
ceval_01_int2bin8/datatypes.h,
ceval_01_int2bin8/int2bin8.m,
ceval_01_int2bin8/test.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
embedded matlab Rick Rosson 22 Oct 2008 10:25:10
embedded matlab Rick Rosson 22 Oct 2008 10:25:10
eml Rick Rosson 22 Oct 2008 10:25:10
ceval Rick Rosson 22 Oct 2008 10:25:10
emlc Rick Rosson 22 Oct 2008 10:25:10
mex function Rick Rosson 22 Oct 2008 10:25:10
embedded Rick Rosson 22 Oct 2008 10:25:10
emlceval Rick Rosson 22 Oct 2008 13:26:25
rtw Rick Rosson 22 Oct 2008 13:26:46
emlmex Rick Rosson 11 Feb 2009 12:52:05
mex Rick Rosson 11 Feb 2009 12:52:05
real time workshop Rick Rosson 11 Feb 2009 12:52:12
ceval meng long 13 May 2009 02:18:12
eml Lukasz 03 Nov 2009 20:33:56
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com