Python与Matlab混合语言编程
:Python Matlab
Python 与Matlab 混合语言编程
董焰民, 王保保
( 710071)
:Python 是一种简单灵活高效的脚本语言,他特别适合用于原型开发简单介 Python 与M atlab 的特点
针对这两种语言提出几种混合语言编程的方法, 旨在结合Python 与M atlab 各自的优势,通过混合编程提高软件开发的效
率重点介 了用Matlab COM 生成器生成COM 组件,并用 Python 调用该组件的方法
:Python;M atlab;COM; 混合语言编程
:T P311 :B : 1004-373X(2007) 14-108-03
Mixed- Language Programming with Python and Matlab
DONG anmin,WANG Baobao
(School of Computer Science,Xidian University, Xican,710071, China)
Abstract: As a simple, flexible, high-efficient script language, Python is mostly suitable for the prototyping method. The
paper introduces the characters of Python and Matlab. Several methods about mixed-language programming with Python and
Matlab are present.T hey improve the efficiency of software development by the combination of Python and Matlab. It focuses
on the method that Python call thefunction of the COM which is created by Matlab COM Builder.
Keyw ords: Python;Matlab; COM; mixed-language programming
COM COM :
Matlab Matlab ,
Py- COM
[ 1] + +
thon , , C/ C COM M ,
5~ 10 , Python
, ,
2 Python
,
+ +
Matlab C, C , Python , ,
Delphi PythonMatlab, , , ,
Python
,
1 Matlab
, Python
Matlabmcc, Python ,
mcc M C/ CPP dll Python Pytho