How to setup mex for Matlab ?

Hi,
I am trying to run the Deep Learning Framework on Matlab and the instructions are unfortunately, confusing for a newbie like me.
I am supposed to "Install MATLAB, and make sure that its mex is in your $PATH"
1) What is mex and how do i make sure that 'its' mex is in my $PATH ? I have done a bit of searching on google and it turns out that mex allows Matlab to read code written in C/C++ ? I have also tried to use the cmd line in matlab to setup mex but it says "No supported compiler or SDK was found."
2) Do I need to install visual studio for this ?
Caffe on github: https://github.com/BVLC/caffe

3 Commenti

RuiQi
RuiQi il 9 Giu 2016
I have installed visual studio express 2013 but mex is saying Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win64.
RuiQi
RuiQi il 9 Giu 2016
Can someone please provide a set of instructions with links
[copied from duplicate Question]
Hi
How do i setup mex in matlab ? I am using 2014a windows 7. I cant upgrade to 2015b. When I type mex - setup matlab says Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win64.

Accedi per commentare.

Risposte (1)

Walter Roberson
Walter Roberson il 9 Giu 2016

0 voti

It has been quite a number of years since any Visual Studio Express was supported. If you look at the list at http://www.mathworks.com/support/compilers/R2014a/win64 you will see that it specifically lists the Professional versions, not the Express versions.
Depending on which operating system you are using, you might be able to use the SDK 7.1 . However, if you are using Windows 10, you are probably not going to be able to get any compiler to work with your R2014a MATLAB, unless perhaps you can get one of the commercial Intel compilers to work.

4 Commenti

RuiQi
RuiQi il 9 Giu 2016
Modificato: RuiQi il 9 Giu 2016
Hi thanks. I am really bad with all the terms being used. I am using windows 10. So what should my next step be if I want it to get to work with "one of the commercial Intel compilers" ?
You would probably find it easier to upgrade to R2015b or later, as those support compilers on Windows 10.
Here you said you are using Windows 10. In your duplicate question (which I have moved to above) you say you are using Windows 7. Which is it? It makes a big difference in compiler support!
If you are using SDK 7.1, then just install Microsoft's SDK 7.1, and then at the MATLAB command line give the command
mex -setup

Accedi per commentare.

Categorie

Richiesto:

il 9 Giu 2016

Commentato:

il 10 Giu 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by