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

RuiQi
RuiQi 2016년 6월 9일
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 2016년 6월 9일
Can someone please provide a set of instructions with links
Walter Roberson
Walter Roberson 2016년 6월 10일
[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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 6월 9일

0 개 추천

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

RuiQi
RuiQi 2016년 6월 9일
편집: RuiQi 2016년 6월 9일
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" ?
Walter Roberson
Walter Roberson 2016년 6월 9일
You would probably find it easier to upgrade to R2015b or later, as those support compilers on Windows 10.
Walter Roberson
Walter Roberson 2016년 6월 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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

태그

질문:

2016년 6월 9일

댓글:

2016년 6월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by