欢迎来到天天文库
浏览记录
ID:51493140
大小:360.82 KB
页数:5页
时间:2020-03-25
《MATLAB与Visual C++混合编程在计算材料介电性能中的应用.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、万方数据第22卷第2期重庆邮电大学学报(自然科学版)V01.22No.22010年4月JournalofChongqingUniversityofPostsandTelecommunications(NaturalScienceEdition)Apr.2010MATLAB与VisualC++混合编程在计算材料介电性能中的应用何茗1’2(1.电子科技大学微电子与固体电子学院,四川成都610054;2.成都电子机械高等专科学校电气系,四川成都610031)摘要:针对MATLAB不能实现端口操作、实时控制和VisuMC++处理复杂数值运算效率低的问题,利用Visualc++
2、与MATLAB进行混合编程,实现功能互补,为材料介电性能的复杂计算及计算结果的可视化提供强大的技术支持。MATLAB将材料介电模型文件转化成VisualC++的代码,并将代码用VisualC++编译器编译连接成独立应用程序。结合VisualC++强大友好的软件制作功能及MATLAB功能极强的科学计算及图形绘制显示特性,MAlrIAB编译器将不同的介电性能的计算模块分别编译成动态链接库文件,并在VisualC++编写的可视化交互操作界面中对其进行调用,实现计算及绘图功能。关键词:MATLAB;VisualC++;混合编程中图分类号:TP311.1文献标识码:A文章编号:
3、1673.825X(2010)02-0265-04ApplicationofMATLABandVisualC++mixed-languageprogrammingindielectricpropertiesHEMin91·2(1.SchoolofMicroelectronicsandSolid—StateElectronics,UniversityofElectronicScienceandTechnologyofChina,Chengdu610054,P.R.China;2.ElectricalandElectronicEngineefingDepartment,C
4、hengduElectromechanicalCollege,Chensd.610031,P.R.China)Abstract:MATLABalgorithmcallnotrealizeportoperationandreal—timecontrol。andVisualC++cannothandlecom—plicatednumericalcalculationefficiently.Therefore.VisualC++andMATLABmixedprogrammingwereusedtorealizefunctionaleomplementationandprov
5、ideapowerfultechnicalsupportforthedielectricpropertiesofcomplexcalculationsandthevisualizationresults.Theapplicationofmixed—languageprogrammingwithMATLABandVisualC++ondielectricpropertieswaspresentedinthispaper.ThedielectricmodelfileduringcomputingcoursewaschangedintoVisualC++sourcecode
6、byMATLAB,andwaslinkedandformedindependent印plicationprogrambyVisualC++compiler.Throughcombiningthepowerfulandfriendlyprogramming,computinganddisplayingfunctionofVisualC++,differentcomputingmoduleofdielectricpropertieswerecompiledintodynamic—linklibraryfileandtransferredinthevisualinterfa
7、ceofVisualC++.SoComputingandplottingfunctionofMATLABWasrealizedinVisualCprogram.Keywords:MATLAB;VisualC++;mixingprogram0引言由于MATLAB强大的科学计算、可视化功能、简单易用的开放式可扩展环境以及多达30多个面向不同领域而扩展的工具箱支持,使得MATLAB在许多学科领域中成为计算机辅助设计与分析、算法研究和应用开发的基本工具和首选平台¨。2】。但是由于其编译器采用伪编译的方式,在MATLAB中编收稿日期:2009-07.10修订日
此文档下载收益归作者所有