基于Matlab的通用在线数学实验平台设计与实现
Design and Implementation of General Online Mathematics Experiment Platform Based on Matlab
-
摘要: 提出一种新的构建通用在线数学实验平台的技术方法,采用Jsp/Servlet技术开发了基于Internet的数学实验系统。系统接受用户浏览器上输入的实验代码,在服务器上巧妙地通过Matlab Builder JA计算引擎中的eval命令将输入的实验代码编译运行,运行结果按计算和绘图功能分别存储为文本文件或图片文件,最终,将运行结果文件返回显示在用户网页上。由于能接受任意输入的实验项目程序代码,实验结果保存为通用的.txt文本文件和.png图形格式,因此实验平台能完成所有数学实验项目。基于Internet的系统模式符合在线实验“瘦客户端”的发展趋势,具有广泛的通用性,为相关在线教学实验平台的构建和开发提供了新的思路。Abstract: A new approach to online universal mathematics experiment platform building and implementation was proposed. A mathematical experiment system based on the Internet is developed using Jsp/Servlet technology.Experimental code is entered on the user's browser. User's experimental code is compiled to run via the “eval” command of Matlab Builder JA, experimental results are stored in accordance with.txt text file or.png graphics file, and displays on the web page. As arbitrary code can be accepted, the developing platform is able to complete most of the experiments, the Internet-based system meet the online experiment “thin client” trend and has wide universality, a new approach of developing related common online education platform is offered.