这是不可能实现的,放弃吧
——2010-4-20,翻遍Google与百度之后的结论
如果你不在乎这个问题是怎么回事,实在想解决这个问题,请跳过中间的几段话,直接看本文最后一个链接。那是一个理论上可行,实际上未经测试的解决方法。
以下引自:http://www.mathworks.com/matlabcentral/newsreader/view_thread/153922
Subject: C# To call a Compiled DLL:Error
From: Steven Lord
Date: 11 Dec, 2007 03:24:59
Message: 9 of 10
The MATLAB Builder for .NET product has, in general, the same limitations
and restrictions as the MATLAB Compiler product:
http://www.mathworks.com/access/helpdesk/help/toolbox/dotnetbuilder/ug/bqigjk4-1.html#bqigjk4-4
The limitations for the MATLAB Compiler product are listed here:
http://www.mathworks.com/products/compiler/compiler_support.html
In the row for the Neural Network Toolbox, it says that pre-trained networks
are compilable, and all other command line functionality can not be
compiled. I believe that call to NEWFF in your original code (which creates
a new network) may fall into the "all other command line functionality"
category.
--
Steve Lord
slord@mathworks.com
以下引自:http://www.mathworks.com/matlabcentral/newsreader/view_thread/263615
Subject: setAdaptFcn, Compiler error
From: Peter Webb
Date: 20 Oct, 2009 19:24:51
Message: 2 of 3
Some Neural Net toolbox functions aren't deployable (i.e. can't be used in a
compiled application). Are you deploying an application that attempts to
train a neural net? That doesn't work. But if you're trying to use an
already-trained neural net, we should be able help you find a solution.
归根结底,是因为MATLAB不支持工具箱函数的二次开发,相关参考资料见:http://topic.csdn.net/u/20091206/03/53c25f9a-660c-4e55-82e7-93ba05556660.html?61442
原文较长,就不引用了