How to setup mex for Matlab ?

28 visualizzazioni (ultimi 30 giorni)
RuiQi
RuiQi il 9 Giu 2016
Commentato: Walter Roberson il 10 Giu 2016
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
Can someone please provide a set of instructions with links
Walter Roberson
Walter Roberson il 10 Giu 2016
[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
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
Walter Roberson
Walter Roberson il 10 Giu 2016
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!
Walter Roberson
Walter Roberson il 10 Giu 2016
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

Scopri di più su Troubleshooting in MATLAB Compiler SDK in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by