摘要
在Matlab与VB.NET的混合编程中,Matlab计算结果的存储是一个非常关键的问题。通过VB.NET直接调用Matlab的相关函数无法实现存储功能。介绍了在VB.NET与Matlab的混合编程中,使用StreamWriter类的write和writeline方法将数据写入txt文本文件,使用ActiveX自动化服务将结果保存为xls文件的两种方法,比较了二者各自的特点,并指出了开发过程中应注意的问题。
In the hybrid programming of Matlab and VB.NET, the storage of the Matlab's results is a very pivotal problem. This function isn't realized by using functions of Matlab in VB. NET. Two methods is introduced for storing Matlab's results in the hybrid programming of Matlab and VB. NET, using write method and writeline method of StreamWriter class to write data into txt file, using ActiveX automatic server to write data into xls file, each method's characteristics are compared, and the problems are pointed out which should pay attention to in the developing process.
出处
《计算机工程与设计》
CSCD
北大核心
2009年第8期2008-2010,共3页
Computer Engineering and Design
基金
国家自然科学基金项目(10535020)
教育部全国优秀博士学位论文作者专项基金项目(200456)