Hey! I realize that .mexw64 is a compiled machine code for a Windows 64-bit setup, and thus I cannot use that on the Mac. Is there any way that I can use it anyhow? Maybe by changing it to another format or reading the file and copying and pasting it? Thank you! P.S. The function is the pixelIdlistsn.mexw64.

 채택된 답변

James Tursa
James Tursa 2014년 6월 19일

1 개 추천

No. The mexw64 file can only be used by a 64-bit MATLAB version running under Windows. There is no way to modify it (copying, pasting, reformatting, etc) that will allow it to run on a Mac.

댓글 수: 4

Guilherme Salome
Guilherme Salome 2017년 9월 14일
What if you have the original .m code?
James Tursa
James Tursa 2017년 9월 14일
편집: James Tursa 2017년 9월 14일
If you have the original m-code then you can recompile that on the Mac into a Mac version, yes.
Josephine Cruzat
Josephine Cruzat 2018년 7월 24일
Any ideas on how to do that?
A .mex* file is typically originally C or C++ code (sometimes fortran) that has been compiled with the 'mex' command, such as
mex -v pixelIdlistsn.c
If you were starting with .m code then you would need to use MATLAB Coder to generate the C or C++ code to be built with mex; see https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/47593/versions/18/previews/documentation/modules/CodeGeneration/html/AccelerateMATLABDocumentation.html?access_key=

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

질문:

2014년 6월 19일

댓글:

2018년 7월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by