Be the first to rate this file! 6 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)

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

| 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)
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
embedded Rick Rosson 22 Oct 2008 10:25:10
mex function Rick Rosson 22 Oct 2008 10:25:10
emlc 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
emlceval Matthew 25 Jun 2011 08:49:30
ceval Kenny 25 Jan 2012 01:21:26

Contact us at files@mathworks.com