摘要
介绍了在Matlab平台下开发图形用户界面GUI的方法和步骤。利用Matlab强大的数值计算能力和数据可视化能力,以基于多项式的最小二乘法和B样条函数法为例进行图形用户界面的设计开发,演示了其常用控件的应用方法;把GUI应用于水泵的效率曲线拟合,利用m文件的函数调用达到数据的输入和输出,实现了数据文件的读取,完成了图形的绘制,同时方便地实现了计算结果的形象输出;由于编程语言简单从而可以快速方便地进行计算,特别是矩阵的计算,与常规方法相比大大减少了工作量,简化了计算过程。
Approaches of Graphical User Interlace GUl under Matlab is introducedin this paper.With its powerful numerical computing power and data visualization capability and based on polynonial's least squres and B-spline methods, graphical user interface is de- signed and developed. And use of common controls is demonstrated. GUI is applied to the curve fitting of pumping efficiency. Func- tion call of m document implements the function of data's input and output, which makes data documents be read and graphics be drawn. At the same time, the result is output intuitively. Because its programming language is very simple, calculation is operated conveniently, especially for matrix: Compared with common methods, workload is reduced greatly and calculation is simplified. So the process and reasoning of this paper can be used as reference to other graphics interface design. Based on polynonial's least squres and B-spline methods, this method can make the computing process easier and the output of result more visualized.
出处
《中国农村水利水电》
北大核心
2008年第9期93-94,98,共3页
China Rural Water and Hydropower