Code covered by the BSD License  

4.5 | 2 ratings Rate this file 17 Downloads (last 30 days) File Size: 5.71 KB File ID: #39549
image thumbnail

Visual Studio Toolbar for mex interface with video tutorial



20 Dec 2012 (Updated )

Seamless interface, VS 2010 and 2012 and Matlab for MEX. Video linked to step you through.

| Watch this File

File Information

Automatically sets up debugging and running of MEX files from Visual Studio.
There is now a visual studio extension (simple click plugin type of install):

The old type of Macros (that are not supported in newer versions of Visual Studio) are kept in the same zip file.

Video tutorial on my page:

On youtube:

MATLAB release MATLAB 7.10 (R2010a)
MATLAB Search Path
Other requirements Visual Studio 2010, for the submission file. Follow the link: for a version that works on 2010 OR 2012
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
16 Dec 2014 Stefan Karlsson


Thanks for your interest, and for sharing how you solved the issue. Sounds like it is a question of varying security settings, and thus nothing that I can do anything about. Great that the solution is so simple.

To reiterate:

Tools->Options->Addin/Macros Security

add the full path of the "Matlab Tools20xx.vsix" file.

Comment only
09 Dec 2014 Jim

Jim (view profile)

I use Matlab R2014B 64bit and VS2010 Pro under Windows XP Pro 64bit (SP2).

After following your instructions I had a slight difficulty in using the vsix plugin;
'View' worked ok, but the other commands 'Run','RunFast' and 'Debug' all reported 'No process is associated with this object'.

To fix this I needed to explicitly 'Add' the path to the 'vsix' plugin file to VisualStudio Tools->Options->Addin/Macros Security.


06 Mar 2014 Stefan Karlsson


Thanks for your feedback. As this submission is all about avoiding boring stuff... I dont expect many people to give a rating or feedback on this submission.

Hope you find it useful, happy coding!

Comment only
04 Mar 2014 Thomas Clark

Used the VS2012 extension.

Works seamlessly, thank you very much.

It took me a long time to figure out how to do this for IFC on Linux, I wasn't relishing the process of working out the same thing on VS2012 for an entirely different platform!

21 Dec 2012 Stefan Karlsson

videos here:

Comment only
21 Dec 2012

Added the link to the videos

26 Dec 2012

- Only one open session of the thin matlab in the background.
- Added save check of current document

26 Dec 2012

Quick Fix previous upload.

26 Dec 2012

1. Added a macro "CompileWMatlab", which only compiles and builds the code in matlab.
2. Added remarks at the top of the VB file that details how to install the macros.
3. tidied up the example mex files

31 Dec 2013

There is now a visual studio extension, instead of just Macros. Simple click install for both VS 2010 and 2012

03 Mar 2014

updated the video tutorial

05 Oct 2014

Just changed the description to include VS 2012, which is fully supported

Contact us