Simplifying mexfunctions
by William Handler
29 Jun 2011
(Updated 29 Jun 2011)
I wrote a class to be included in the mexfunction file to make processing of mexfunction simpler.
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.12 (R2011a)
|
| Other requirements |
Tested on mac intel using gcc compiler only |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 29 Jun 2011 |
Added some more methods for integers and vectors |
|
Contact us