MATLAB - 从mexa64到mexmaci64?

Sib*_*ing 1 linux macos matlab

在MATLAB中,我有一个以.mexa64.结尾的MEX文件.也就是说,它适用于Linux 64位.

现在,我希望在Mac MATLAB中调用该函数,这需要.mexmaci64.我该如何进行转换?可能吗?

Sib*_*ing 6

没有重新编译就不可能进行转换.

只需重新编译源代码,例如,

mex sourceCode.c
Run Code Online (Sandbox Code Playgroud)

sourceCode.mexmaci64如果您使用的是OS X,它会自动给您.