vc调用matlab
代码说明:
将一个m文件转成c /cpp文件并在VC中进行编译。这种方法有个烦人的地方,每次你都需要把matlab生成的一 大堆c和h文件考到vc中,比如我读入一副图片先做膨胀,再腐蚀,再进行小波变换,最后 显示。这样一个程序会生成大概150多个文件,每次都要拷贝这些文件很不方便。我试着用 了另外一种方法,可以简化这些工作。那就是不生成cpp文件交给VC去编译,而是直接在m atlab中生成一个dll交给VC去链接即可。这样无论matlab生成多少文件,都只需要拷贝三 个文件即可。 (m to a document conversion c/cpp files and compile VC. Such a method is a nagging place every time you need Matlab has generated a lot of c and h vc document examination, for example, I read a photo, first expansion, and corrosion, further wavelet transform, the last show. Such a procedure will probably generate more than 150 documents, each copy of these documents must be very inconvenient. I tried another kind of approach can simplify their work. It is not generating cpp documents to the VC to compile, but m atlab directly in the formation of a dll to the VC to link. No matter how many documents generated Matlab, only three need to copy documents.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!