有没有简单的方法来提供基于Matlab的Web应用程序或Web服务? [英] Is there an easy way to provide a Matlab-based Web App or Web Service?

查看:216
本文介绍了有没有简单的方法来提供基于Matlab的Web应用程序或Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和一位同事花了几年时间开发了一个非常酷的Matlab应用程序MDLcompress.在Matlab中,我可以键入"MDLcompress('filename.txt')",它将告诉我有关filename.txt内容的各种非常酷的东西.我们希望允许其他人使用MDLcompress,而无需下载代码,安装Matlab等.理想情况下,我们有一个简单的网页,他们从他们的计算机中选择一个文件,并将其上传到我的工作站(该文件已经运行Tomcat以用于其他目的(如果这样会使事情变得更容易),请按照"matlab< MDLcompress.m filename.txt> results.txt"的代码启动一个进程,然后在其浏览器中显示results.txt或显示指向让他们下载它.

A colleague and I have spent a few years developing a really cool Matlab application, MDLcompress. Within Matlab, I can type "MDLcompress('filename.txt')" and it will tell me all sorts of really cool stuff about the contents of filename.txt. We'd like to allow other people to use MDLcompress without downloading the code, installing Matlab, etc. Ideally, we'd have a simple web page where they selected a file from their machine, it got uploaded to my workstation (which is already running tomcat for other purposes, if that makes things easier), kicked off a process along the lines of "matlab < MDLcompress.m filename.txt > results.txt" and then displayed results.txt in their browser or showed a link to let them download it.

问题是,我的Matlab技能​​远远超过了我的网络技能. Google有100个通用教程,但没有我想要的那么简单,至少不是特定于Matlab.

Trouble is, my Matlab skills far exceed my web skills. Google has 100 generic tutorials, but nothing as simple as I want, at least not specific to Matlab.

预先感谢

推荐答案

如果您精通MATLAB,则可以使用本教程将有助于从Matlab代码创建CGI模块

If you are mostly proficient in MATLAB you can write web application in MATLAB with MATLAB Web Server Matlab Web Server is discontinued, so it is not for you if you use recent version of Matlab. May be this tutorial will help to create CGI module from Matlab code.

这篇关于有没有简单的方法来提供基于Matlab的Web应用程序或Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆