Simplifying mexfunctions

I wrote a class to be included in the mexfunction file to make processing of mexfunction simpler.
188 Downloads
Updated 29 Jun 2011

View License

To avoid code repetition in mexfunctions you can use this class to convert from the mxArray array passed into mexFunction to c++ native data types. Each method implemented so far checks that the mxArray has the desired type and size and exists. I plan on adding new types as they crop up in our code development, though this initial class could easily be useful if you intend to code more than one mexfunction.

Cite As

William Handler (2024). Simplifying mexfunctions (https://www.mathworks.com/matlabcentral/fileexchange/32008-simplifying-mexfunctions), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on MATLAB Compiler in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Added some more methods for integers and vectors

1.0.0.0