Writing MATLAB C/MEX Code
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
Cite As
Pascal Getreuer (2024). Writing MATLAB C/MEX Code (https://www.mathworks.com/matlabcentral/fileexchange/27151-writing-matlab-c-mex-code), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |