搜索资源列表
vc调用matlab
- 将一个m文件转成c /cpp文件并在VC中进行编译。这种方法有个烦人的地方,每次你都需要把matlab生成的一 大堆c和h文件考到vc中,比如我读入一副图片先做膨胀,再腐蚀,再进行小波变换,最后 显示。这样一个程序会生成大概150多个文件,每次都要拷贝这些文件很不方便。我试着用 了另外一种方法,可以简化这些工作。那就是不生成cpp文件交给VC去编译,而是直接在m atlab中生成一个dll交给VC去链接即可。这样无论matlab生成多少文件,都只需要拷贝三 个文件即可。 -m to a docu
zip.rar
- zip格式压缩解压缩源码及演示 先用VC编译czip_source目录内程序,之后拷贝debug目录内zipdll.dll和zipdll.lib到czip_demo目录再编译此目录内程序即可得到演示程序test_zip,zip form compression solution compression source code and the demonstration first uses VC to translate in the czip_source table of contents
ShortEst
- matlab最短路的贪心算法,用VC++实现,把ShortEst.dll复制到matlab工作文件夹运行(先要运行mex-setup,关联VC与MATLAB)调用方法如 a = [-1,2,3 2,-1,4 3,4,-1] ShorstEst(a) 即可-matlab most short-circuit the greedy algorithm, using VC++ to achieve, and copy it to ShortEst.dll working folder m
memcpy-and-memmove
- memcpy函数测试,在linux和VC编译器下面运行,效果不一样(不能重叠copy)。linux内核memmove函数实现。-memcpy function tests, and VC compiler in linux running below, the effect is the same. linux kernel memmove function implementation.
struction
- 很好用的很简单的张孝祥数据结构配套代码,直接复制粘贴到VC里边即可使用-Good use of a very simple data structure supporting Auspicious code, copy and paste directly to the VC can be used inside
VS2015 与 Matlab2016b编译环境设置
- 64位编译,VS2015调用Matlab2016编译生成的DLL,搞定各种运行错误,调试错误。32位编译下,VC++(Visual studio)调用Matlab编译生成的DLL本来是一件很容易的事情,现在转到64位了,编译环境设置不当,程序无法调通。另外,参照别人的帖子copy代码,不仔细思考,容易出现各种运行报错。(VS2015 call the DLL by Matlab2016. Enviroment setting in the Visual studio 2015. Solve th