摘要:基础物理实验作为我校物理专业必修的一门课程,其实践性不言而喻。其中电磁学实验是一门难度较大的课程,且实验也具有一定的抽象性,实验中较深的数学理论和场的抽象性使得学生在学习中往往有恐惧心理,很难产生学习兴趣。我校现阶段的实验数据和图像只是利用手工处理和描绘。这既浪费了学生的时间,且处理得到的结果误差较大。本文采用MATLAB软件工具对电磁学中伏安法测电阻和制流电路与分压电路的实验数据进行处理,通过建立GUI(图形用户界面),运用M文件实现图形界面的函数回调,并将实验的最终结果(数值和图形)显示出来,实现了实验数据及图像的集成处理,显示了MATLAB在电磁学的计算及可视化方面的优越性,较好地改善传统实验手工处理数据和绘图的方法。
关键词: MATLAB;GUI;最小二乘法;数据
ABSTRACT:Basic Physics Experiment Physics as our school required a course, the practical self-evident. Electromagnetic experiment which is a difficult course, and the experiments have a certain abstract, experimental and field deeper abstract mathematical theory makes students in the learning of fear often difficult to generate interest in learning. My school at this stage the experimental data and image processing and painted by hand only. This is a waste of the student's time, and deal with the results obtained errors. In this paper, MATLAB software tool for electromagnetics voltammetry measurement system of flow resistance and the voltage divider circuit and the experimental data processing, through the creation of GUI (graphical user interface), the use of M file callback function to achieve a graphical interface, and The final experimental results (numerical and graphical) display to achieve the integration of experimental data and image processing, display the MATLAB calculation in the electromagnetic and the advantages of visualization, the better to improve the traditional manual processing of experimental data and drawing approach.
Keywords: MATLAB; GUI; Least-square method ; Data