5.0

5.0 | 2 ratings Rate this file 39 Downloads (last 30 days) File Size: 246.14 KB File ID: #27151
image thumbnail

Writing MATLAB C/MEX Code

by Pascal Getreuer

 

01 Apr 2010

MEX: Combine the power of MATLAB and C

| Watch this File

File Information
Description

Learn how to create MEX-functions: programs written in C, C++, or Fortran code that are callable from MATLAB. This article is a guide to getting started and performing practical tasks as well as a reference.

Contents:
* Introduction
* Getting Started
* Inputs and Outputs
* Creating an Uninitialized Numeric Array
* Calling a MATLAB function from MEX
* Calling a MATLAB function handle from MEX
* Calling MATLAB from a non-MEX program
* Memory
* Non-Numeric Variables
* FFTs with FFTW
* Miscellaneous
* Further Reading

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
26 Sep 2010 Hamid Badi

A very useful document about C mex API with examples.

16 Nov 2010 Oleg

A concise set of examples for a clean and efficient code with a lot of useful tricks.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
programming Pascal Getreuer 02 Apr 2010 09:50:30
article Pascal Getreuer 02 Apr 2010 09:50:30
paper Pascal Getreuer 02 Apr 2010 09:50:30
whitepaper Pascal Getreuer 02 Apr 2010 09:50:30
mex Pascal Getreuer 02 Apr 2010 09:50:30
external interface Pascal Getreuer 02 Apr 2010 09:50:30
compiler Pascal Getreuer 02 Apr 2010 09:50:30

Contact us at files@mathworks.com