1.为了在Matlab里跑ksvdbox和ompbox中的C语言编写的程序需要调用mex函数。
在安装好后,mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2014b/maci64.html.
解决办法(2014b、2015b可用):
2.Attempt to execute SCRIPT ompbox/private/ompmex as a function:
在安装好了编译器的情况下,将当前matlab的运行目录改为ompbox/private,然后在命令窗口输入make就可以了
3.在Mac上执行addpath函数要注意一个问题,OS X中路径的斜杠与Windows的斜杠方向正好是反的,把\改成/就行了。
(所以在运行的时候找不到 其他路径中的已经编写.m文件的函数 就是这个原因)