摘要
CORBA,JNI技术下传统演示的Matlab图形窗体存在诸多弊端,COM对象下Com Builder的虚拟演示能够使Matlab图形窗体独立直观显示,保留了原有的窗体属性,诸如获取某点的横纵坐标、图形缩放、维数转变,及设置线条、窗体各类属性等功能。其关键技术在应用COM对象下的Com Builder,将MATLAB的M文件转化为Java类,利用JSP中的WebFigure标签实现虚拟演示功能。通过结合实例演示,论证了其与传统演示相比的优越性以及该技术的可行性,使学生在课堂上就能加深对相关知识点的图形效果分析,以及对相关概念和理论的理解。
The traditional demonstrational Matlab graphic windows using CORBA and JNI technologies has many disadvantages,while the virtual demonstration of Com Builder under the COM object can make the Matlab graphic window display independently and visually,and retain the original window attributes,such as acquirement of horizontal and vertical coordinates of a point,graph scaling,and dimension change,and setting of line and window attribute. Its key technology is to apply the Com Builder under the COM object to convert the M file in the Matlab into the Java class,and utilize the WebFigure tags in JSP to realize the virtual demonstration function. Combining with the instance demonstration,the superiority of the virtual demonstration over the traditional demonstration and the feasibility of the technology were verified. The results show that the virtual demonstration can make students deepen the graphic effect analysis of relevant knowledge points and the understanding of relevant concepts and theories in the class.
引文
[1]庄思发.利用Matlab Web Server实现在线作图[J].计算机系统应用,2010,19(6):223-225.ZHUANG Sifa. Online plot using the Matlab Web Server[J].Computer systems&applications,2010,19(6):223-225.
[2]蔡云鹭.基于Java Web和Matlab Builder JA的远程数学实验教学系统设计[J].实验技术与管理,2012,29(1):83-85.CAI Yunlu. Design of distance education system for mathematics based on Java Web and Matlab Builder JA[J]. Experimental technology and management,2012,29(1):83-85.
[3]苏耀峰.混合编程方法在网络运维效能评估中的应用[J].软件导刊,2016,15(5):145-147.SU Yaofeng. Application of hybrid programming method in network operation and maintenance efficiency evaluation[J]. Software guide,2016,15(5):145-147.
[4]黄银娟.基于Matlab Web Server的远程数值分析虚拟系统设计[J].广西民族大学学报(自然科学版),2009,15(2):99-102.HUANG Yinjuan. Remote numerical analysis virtual system based on Matlab Web Server[J]. Journal of Guangxi University for Nationalities(Natural science edition),2009,15(2):99-102.
[5]廖云伢,王建新,盛羽.基于Java与Matlab集成的虚拟实验平台的设计与实现[J].计算机应用,2007,27(2):394-396.LIAO Yunya,WANG Jianxin,SHENG Yu. Design and implementation of virtual lab platform based on integration of Java and Matlab[J]. Computer applications,2007,27(2):394-396.
[6]王建新,莫秋菊.基于Internet的通信系统虚拟实验环境设计与实现[J].中南大学学报(自然科学版),2006,37(2):330-335.WANG Jianxin,MO Qiuju. Design and implementation of communication system virtual environment based on Internet[J].Journal of Central South University(Science and technology),2006,37(2):330-335.
[7]周小娟.Java-Matlab混合编程的研究[J].电子设计工程,2013,21(2):16-18.ZHOU Xiaojuan. Research of Java-Matlab mixed programming methodology[J]. Electronic design engineering,2013,21(2):16-18.
[8]王薇,杨丽萍.Java和Matlab混合编程及其应用[J].长春大学学报,2012,22(10):1186-1189.WANG Wei,YANG Liping. Mixed programming of Java and Matlab and its application[J]. Journal of Changchun University,2012,22(10):1186-1189.
[9]尹莉丽,初学导.基于COM技术实现C++Builder与Matlab混合编程及其在模糊自整定PID控制中的应用[J].计算机与现代化,2006(1):34-37.YIN Lili,CHU Xuedao. Joint programming of C++Builder and Matlab with COM and its application in self-turning fuzzy PID control[J]. Computer and modernization,2006(1):34-37.
[10]张宏立.基于Matlab的Web实验平台开发[J].计算机应用与软件,2005,22(2):142-144.ZHANG Hongli. Exploitation of web experimental platform based on Matlab[J]. Computer applications and software,2005,22(2):142-144.
[11]曾威,杨建东,凌宇.基于Java和Matlab混合编程的水泵水轮机全特性构造系统[J].大电机技术,2014(4):55-58.ZENG Wei,YANG Jiandong,LING Yu. The generation of pump-turbine characteristics based on hybrid programming between Java with Matlab[J]. Large electric machine and hydraulic turbine,2014(4):55-58.
[12]金波.信号与系统[M].武汉:华中科技大学出版社,2015.JIN Bo. Signals and systems[M]. Wuhan:Huazhong University of Science and Technology Press,2015.