Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
c-->mex compatibility code

Subject: c-->mex compatibility code

From: Akim

Date: 3 Nov, 2010 10:03:03

Message: 1 of 3

Dear people,

Is the c-->mex compatibility code below valid? problematic?

#define MEX_H
#ifdef MEX_H
    #include "mex.h"
    #define malloc mxMalloc
    #define calloc mxCalloc
    #define free mxFree
    /* et cetera */
#endif

Subject: c-->mex compatibility code

From: Alberto Jimenez Pacheco

Date: 4 Mar, 2011 09:05:08

Message: 2 of 3

You may be interested in having a look at this post:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/303846

"Akim " <aaa@bbb.ccc> wrote in message <iarc0n$qrr$1@fred.mathworks.com>...
> Dear people,
>
> Is the c-->mex compatibility code below valid? problematic?
>
> #define MEX_H
> #ifdef MEX_H
> #include "mex.h"
> #define malloc mxMalloc
> #define calloc mxCalloc
> #define free mxFree
> /* et cetera */
> #endif

Subject: c-->mex compatibility code

From: Akim

Date: 17 Aug, 2011 12:01:09

Message: 3 of 3

"Alberto Jimenez Pacheco" wrote in message <ikqa04$f30$1@fred.mathworks.com>...
> You may be interested in having a look at this post:
> http://www.mathworks.com/matlabcentral/newsreader/view_thread/303846
>

Dear Alberto,

Thanks very much -- this helps a lot.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us