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:
Beginner's guide to mex

Subject: Beginner's guide to mex

From: David Epstein

Date: 9 Nov, 2010 13:10:23

Message: 1 of 2

I work on a Mac, using Matlab R2010a. I have never used mex and I need gentle sources of information, as I find the response to 'help mex' rather daunting.

I have working Matlab code (a gui in fact) and I would like to make it available to Windows colleagues, who do not have Matlab. Is this possible?

I would like to make an icon for the program, so that Windows users need only click on the icon to make the program run. Are there Matlab tools to help with this?

Do I have to run mex separately on each of the several mfiles that make up my program, and then somehow link the results together?

Thanks for any help.

Subject: Beginner's guide to mex

From: PLH

Date: 9 Nov, 2010 13:34:08

Message: 2 of 2

I am responding to this as a fellow "beginner in mex". I found the following useful:

Some video demonstrations (requiring Flash) of making standalone applications etc..

A fairly comprehensive overview

Help with setting up the C compiler

I also spent some time making *simple* code, and playing around with making standalone applications, and simple functions to call within Matlab before directly confronting the code I actually wanted to use mex for. Sadly (and unsurprisingly), I haven't found one place with a step-by-step tutorial - you just have to get the pieces of the jigsaw around Mathworks and ram them together until you understand it...

As for Mac compatibility, I'm afraid you've have to wait until an expert joins in with the discussion.

I hope that helps a bit,


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