2008年9月23日星期二

Matlab compiler的几点限制

今天帮一位朋友解一个未知数比较多的方程组,用Symbolic符号工具箱来完成的。弄好了之后想用mcc打包成exe发给他,但是编译出来的exe文件死活不能运行,郁闷。忙活了半天,最后总算找到了症结所在。原来mcc不支持编译Symbolic工具箱。在MathWorks的站点上给出了mcc详细的限制条件。不一一细说。总之,教训就是:在不能找出问题根源的情况下,一定要仔细阅读文档,否则将会浪费很多时间。

The MATLAB Compiler supports the full MATLAB language and almost all MATLAB based toolboxes. However, some limited MATLAB and toolbox functionality is not licensed for compilation.
(1)Most of the prebuilt graphical user interfaces included in MATLAB and its companion toolboxes will not compile.
(2)Functionality that cannot be called directly from the command line will not compile.
(3)Some toolboxes, such as the Symbolic Math Toolbox, will not compile.
(4)The code generated by the MATLAB Compiler is not suitable for embedded applications.
To see a full list of MATLAB Compiler limitations, visit http://www.mathworks.com/products/compiler/compiler_support.html.

没有评论: