How do I create a MATLAB Web Server application?

2 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Jan 2010
Any MATLAB files used in conjunction with a Web application, including matweb.m, must appear on the MATLAB path. The matweb and matweb.conf files must appear under a /cgi-bin alias. Any generated graphics must be located where the Web Server can find them and programs can write them.
The MATLAB Web Server applications are a combination of MATLAB files, Hypertext Markup Language (HTML), and graphics. Knowledge of MATLAB programming and basic HTML are the only requirements.
The application development process requires a small number of simple steps:
1) Create the HTML documents for collection of the input data from users and display of output. You can code the input documents using a text editor to input HTML directly, or you can use one of the commercially available HTML authoring systems, such as Front Page from Microsoft, PageMill from Adobe, or HoTMetaL from SoftQuad.
2) List the application name and associated configuration data in the configuration file matweb.conf. (See matweb.conf for a description of this file.)
3) Write a MATLAB function that:
a-Receives the data entered in the HTML input form.
b-Analyzes the data and generates any requested graphics.
c-Places the output data into a MATLAB structure.
d-Calls htmlrep to place the output data into an HTML output document template. (See htmlrep for a description of this process.) The maximum amount of HTML data you can receive from MATLAB is 256 KB.
NOTE: As of R2006b, the MATLAB Web Server is no longer available for sale and no new feature development or further bug fixes will occur.

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!