编译外部Matlab函数代码

时间:2014-10-10 09:46:21

标签: c matlab mex

我正在尝试编译外部Matlab函数C代码,以便在我的Matlab(2013a)中使用该函数。当我输入" make"我收到错误" mex:command not found"。如何成功编译该函数?我使用OS X 10.9。

更具体地说,我试图安装SVMStruct函数(来自http://www.robots.ox.ac.uk/~vedaldi/code/svm-struct-matlab.html#ssvm.download),但我的mac上缺少mex命令会阻止这样做。这是完整的错误消息

  

mex -largeArrayDims - CFLAGS =' $ CFLAGS -Wall' LDFLAGS =' $ LDFLAGS' -outdir" build //" -c> " svm_struct_api.c"   / bin / sh:mex:找不到命令   make:*** [build // svm_struct_api.o]错误127

0 个答案:

没有答案