Can Matlab Student compile mex files?

1 回表示 (過去 30 日間)
Simon
Simon 2014 年 7 月 8 日
コメント済み: Image Analyst 2014 年 7 月 9 日
Can Matlab Student compile cpp to mex files (not to a standalone application)?
for example, something like this:
#include "mex.h"
void mexFunction(int nlhs, mxArray plhs[], int nrhs, const mxArray *prhs[]) { / blubb */}
Thanks Simon

採用された回答

Philip Borghesani
Philip Borghesani 2014 年 7 月 8 日
Yes,
But, You must have a supported c++ compiler installed and configured (mex -setup) on your system. MATLAB does not ship with a c++ compiler.
  1 件のコメント
Simon
Simon 2014 年 7 月 8 日
i am aware of the external compiler. i just wasn't sure whether the student version can use it. thank you very much.

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2014 年 7 月 9 日
編集済み: Image Analyst 2014 年 7 月 9 日
I'm pretty sure the answer is no, even if you have a compiler (like Visual Studio). The MATLAB Compiler product is not able to be installed on student editions is what I believe I've heard, and it seems to NOT be on the list of available add-on products for the student edition found here: http://www.mathworks.com/academia/student_version/companion.html?s_tid=ac_add_sv_bod. So I guess I'll have to disagree with Philip.
  2 件のコメント
Philip Borghesani
Philip Borghesani 2014 年 7 月 9 日
編集済み: Image Analyst 2014 年 7 月 9 日
I believe we answered different questions. The MATLAB student edition can compile c or cpp source code into a mex binary that can called from MATLAB. This functionality ships with all copies of MATLAB.
The MATLAB compiler product and MATLAB Coder are not available for student MATLAB so MATLAB code cannot be compiled to standalone libraries or executables.
Image Analyst
Image Analyst 2014 年 7 月 9 日
OK, thanks for the clarification. (I don't own the student edition.)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by