Thread Subject:
MEX file from complex C++ program

Subject: MEX file from complex C++ program

From: newuser asdf

Date: 16 Jan, 2011 14:43:05

Message: 1 of 2

Hello,

I am completely new to MEX files.
I have a C++ program that is quiet complex and needs many different classes, and I need to expose some methods to MATLAB.
In more detail, I would only need one method (that has only standard parameter types, i.e. double, integer, arrays of double..) which internally in C++ creates objects and works with them, and then returns a simple array to MATLAB...
Can I do so without converting each single C++ file to MEX (I also use external libraries in C++)? And if so, how can I do this?
Sorry about this very generic quesiton, but I was not able to find any information about this...

Thanks for your help,
s.

Subject: MEX file from complex C++ program

From: Nicolas Cusseau

Date: 18 Jan, 2011 17:53:08

Message: 2 of 2

Hi,

There was a post last month about it.
You can try the Mex Object Handle written by Tim Bailey.
http://www-personal.acfr.usyd.edu.au/tbailey/software/other.htm

Regards,

Nicolas

"newuser asdf" wrote in message <igv05p$1vr$1@fred.mathworks.com>...
> Hello,
>
> I am completely new to MEX files.
> I have a C++ program that is quiet complex and needs many different classes, and I need to expose some methods to MATLAB.
> In more detail, I would only need one method (that has only standard parameter types, i.e. double, integer, arrays of double..) which internally in C++ creates objects and works with them, and then returns a simple array to MATLAB...
> Can I do so without converting each single C++ file to MEX (I also use external libraries in C++)? And if so, how can I do this?
> Sorry about this very generic quesiton, but I was not able to find any information about this...
>
> Thanks for your help,
> s.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
duplicate post James Tursa 16 Jan, 2011 13:04:52
rssFeed for this Thread

Contact us