Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an easy way to provide a Matlab-based Web App or Web Service?

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.

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.

Thanks in advance

like image 931
PlexLuthor Avatar asked Nov 26 '08 20:11

PlexLuthor


People also ask

Can I use MATLAB for web development?

Web apps are MATLAB apps that can run in a web browser. You create an interactive MATLAB app using App Designer, package it using the Web App Compiler, and host it using either the development version of MATLAB Web App Server or the MATLAB Web App Server™ product.

Can I make an app with MATLAB?

Create desktop and web apps in MATLABApp Designer lets you create professional apps without having to be a professional software developer. Drag and drop visual components to lay out the design of your graphical user interface (GUI) and use the integrated editor to quickly program its behavior.

What is MATLAB Web app server?

MATLAB Web App Server™ lets you host MATLAB® apps and Simulink® simulations as interactive web apps. You can create apps using App Designer, package them using MATLAB Compiler™, and host them using MATLAB Web App Server.


2 Answers

If you are mostly proficient in MATLAB you can write web application in MATLAB with MATLAB Web Server Edit: 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.

like image 107
Anton Nazarov Avatar answered Sep 23 '22 01:09

Anton Nazarov


A possible way is to compile the matlab code into C, and then make the C file into an apache module, and use an apache server. I have no idea how complicated this is, but it may work.

like image 24
Yuval F Avatar answered Sep 25 '22 01:09

Yuval F