摘要
用m文件仿真和解算,需将其编译为MEX程序,才可在其他编程环境调用。m文件应用于VC++方法有:直接利用MIDEVA将m文件编译成为EXE或DLL文件;利用MIDEVA和VisualMatcom插件将m文件转换为C++文件,并在VC++中打包成C++函数。以连续控制系统仿真m文件为例,介绍了m文件编辑、编译、修改和函数打包过程。
When simulating and computing by m-files, it usually requires m-files be compiled into MEX program for usage in other development environments. Two application methods of m-files in VC++: m-files can be compiled into EXE or DLL file directly by MIDEVA, and m-files can be transformed C++ files by MIDEVA and its Visual Matcom, then them are packed into C++ functions in Visual C++. Taking the m-file of continuous control system simulation as an example, the progress of edit, compile, modification, and function packing of m-files was also introduced.
出处
《兵工自动化》
2004年第3期76-76,共1页
Ordnance Industry Automation