菏泽学院学报
菏澤學院學報
하택학원학보
JOURNAL OF HEZE UNIVERSITY
2012年
2期
35-38
,共4页
秦春影%喻晓锋%仝海燕%唐淑萍
秦春影%喻曉鋒%仝海燕%唐淑萍
진춘영%유효봉%동해연%당숙평
集成%Matlab%C%Sharp
集成%Matlab%C%Sharp
집성%Matlab%C%Sharp
integrate%Matlab%C Sharp
常用的程序设计语言在统计方面存在不足,Matlab可以弥补这方面的不足,但Matlab在界面设计、运行效率上无法令人满意.在实际的项目开发中,特别当项目的主要功能是统计分析、模拟仿真时,一方面要有友好的用户界面,另一方面又要进行统计分析、模拟仿真,因而要将Matlab与程序设计语言进行集成开发.CSharp是流行的程序设计语言,研究了CSharp与Matlab集成的三种方式:CSharp直接访问Matlab内置函数、构建.NET程序集和创建C语言共享库,通过比较可知:创建C语言共享库运行效率最高,但是稳定性不好;直接访问Matlab内置函数运行稳定,但是效率最低;构建.NET程序集方式运行稳定,并且效率较高.综合考虑,在实际应用中,采用构建.NET程序集的方式来集成CSham和Matlab应优先考虑.
常用的程序設計語言在統計方麵存在不足,Matlab可以瀰補這方麵的不足,但Matlab在界麵設計、運行效率上無法令人滿意.在實際的項目開髮中,特彆噹項目的主要功能是統計分析、模擬倣真時,一方麵要有友好的用戶界麵,另一方麵又要進行統計分析、模擬倣真,因而要將Matlab與程序設計語言進行集成開髮.CSharp是流行的程序設計語言,研究瞭CSharp與Matlab集成的三種方式:CSharp直接訪問Matlab內置函數、構建.NET程序集和創建C語言共享庫,通過比較可知:創建C語言共享庫運行效率最高,但是穩定性不好;直接訪問Matlab內置函數運行穩定,但是效率最低;構建.NET程序集方式運行穩定,併且效率較高.綜閤攷慮,在實際應用中,採用構建.NET程序集的方式來集成CSham和Matlab應優先攷慮.
상용적정서설계어언재통계방면존재불족,Matlab가이미보저방면적불족,단Matlab재계면설계、운행효솔상무법령인만의.재실제적항목개발중,특별당항목적주요공능시통계분석、모의방진시,일방면요유우호적용호계면,령일방면우요진행통계분석、모의방진,인이요장Matlab여정서설계어언진행집성개발.CSharp시류행적정서설계어언,연구료CSharp여Matlab집성적삼충방식:CSharp직접방문Matlab내치함수、구건.NET정서집화창건C어언공향고,통과비교가지:창건C어언공향고운행효솔최고,단시은정성불호;직접방문Matlab내치함수운행은정,단시효솔최저;구건.NET정서집방식운행은정,병차효솔교고.종합고필,재실제응용중,채용구건.NET정서집적방식래집성CSham화Matlab응우선고필.
General programming languages are lack of statistics function, but Matlab can remedy this shortage. The shortages of Matlab are interface design and running efficiency. In real projects developing, especially when their functions are statistics, analyze and emulate. On the one hand, a friendly interface is needed; on the other hand, statistics and emulate are needed. In this situation, integrating C Sharp with Matlab is a good choice. C Sharp is a very popular programming language. Three ways of integrating C Sharp with Matlab have been studying: C Sharp direcdy access Matlab built - in functions, constructing . net assemblies and create C language shared li- brary. The comparison shows that create C language shared library running efficiency is the highest, but stability is bad ; Direcdy access Matlab built - in function is stable, but efficiency minimum ; Building . net assemblies is sta- ble operation, and high efficiency. Comprehensive consideration, in real application, the way of building . net as- semblies to integrate C Sharp and Matlab should be first consideration.