摘要
传统的部署MATALB Web App的方法是使用MATLAB App Designer设计应用的界面和功能,利用MATLAB Web App Server将设计好的应用打包部署到Web端,但是使用这种方式在设计时存在功能扩展复杂的问题,在部署时存在应用程序加载缓慢,部分浏览器版本不兼容等问题,降低了处理效率与使用体验。为了改善以上情况,提出利用HTML(Hyper Text Markup Language)与Vue设计前端应用界面和后端连接的RESTful API(Representational State Transfer Application Programming Interface),然后用Python构建后端应用接口用于函数计算,再使用Nginx将前端界面部署到Web端,实现一种远程部署MATLAB应用的新方法。网页端FIR(Finite Impulse Response)低通与高通滤波器设计的测试结果表明,上述方法与MATLAB生成的滤波器一致,部署简单且高效,能够较好解决上述问题,同时为MATLAB Web App的托管与共享方式提供了新思路。
The traditional method of deploying MATLAB Web App is to use MATLAB App Designer to design the interface and function of MATLAB Web application,and use MATLAB Web App Server to package and deploy the designed MATLAB application to the web side,but there is a complex problem of function expansion in this way,such as slow application loading,incompatibility of some browser versions and so on,which reduces the processing efficiency and experience.To improve this situation,this paper proposes to use HTML(Hyper Text Markup Language)and Vue to design the front-end application interface and back-end connected RESTful API(Representational State Transfer Application Programming Interface),then use Python to build the back-end application interface for function calculation,and then use Nginx to deploy the front-end interface to Web,to achieve a new method of remote deployment of MATLAB applications.The test results of FIR(Finite Impulse Response)lowpass and high pass filter design show that this method is consistent with the filter generated by MATLAB,is simple and efficient to deploy,can solve the above problems,and provides a new idea for the hosting and sharing of MATLAB Web App.
作者
魏建
孙祥娥
任睿杰
李震东
WEI Jian;SUN Xiang-e;REN Rui-jie;LI Zhen-dong(College of Electronic and Information,Yangtze University,Jingzhou Hubei 434023,China)
出处
《计算机仿真》
2024年第7期423-428,共6页
Computer Simulation
基金
国家自然科学基金(51978078)。
关键词
界面设计
滤波器仿真
前后端分离
Interface design
Filter simulation
Front-end and back-end separation