详细介绍了一种基于COM技术的Delphi和Matlab混合编程的方法。利用Matlab COM Builder将Matlab函数文件转换为COM组件,在Delphi程序中调用该组件,并通过对新型煤场煤堆三维数据进行曲面拟合的实例说明此方法。Matlab具有强大的图形处理能力,Delphi具有友好的用户界面,将二者有机结合,可快速高效地开发出功能强大的应用软件。
A method of the hybrid programming by using COM of Matlab in Delphi is discussed in detail in this paper.By means of Matlab COM builder,Matlab' s function files can be converted into a COM component,which is applied in Delphi.Implementation of three-dimensional fitting of the surface of coal heap is introduced as a sample program.Matlab has powerful graphic processing ability,and Delphi has good user interface.Application software with powerful functions can be quickly and efficiently developed with the integration of the above.