Does the mex files generated on my PC work on another PC?

조회 수: 2 (최근 30일)
Qingshan
Qingshan 2016년 6월 9일
댓글: Walter Roberson 2016년 6월 9일
I developed a software with Matlab. In order to speed up the software executions, I would like to buy the Matlab Coder toolbox to generate mex files for the software. Because the software is going to be used by other students and scientists, I wonder whether the mex files generated on my PC is going to work on other PCs. Many thanks.

채택된 답변

Walter Roberson
Walter Roberson 2016년 6월 9일
Yes, provided that they are running with the same bits (32 vs 64) as you compiled for.
Note however that there has never been any promises about backwards compatibility for .mex* files, so the binary files you generate might stop working at some future release.
If you use MATLAB Coder to generate C code then you could distribute the C code, which the user could then compile; that should be a bit more robust against future changes to MATLAB.

추가 답변 (1개)

Qingshan
Qingshan 2016년 6월 9일
Walter, Many thanks for your answer. Further question: Does user's Matlab need the Matlab Coder toolbox to run my software which uses mex files?
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 6월 9일
No, only the person generating the code needs MATLAB Coder.

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

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by