Installation guide
2 Getting Started
2-2
Introduction
The process of creating a MATLAB Web Server application involves the
creation of:
•An HTML input document for data submission to MATLAB. See
“Creating Input Documents” on page 2-4.
•An HTML output document for display of MATLAB’s computations.
See “Creating Output Documents” on page 2-10.
•A MATLAB M-file to process input data and compute results. See
“Creating MATLAB Web Server M-Files” on page 2-7.
•A test file to validate code before distributing the application over the
Web. See “Debugging Your Application” on page 2-13.
The process of creating a MATLAB Web Server application can be
simplified through the use of a set of templates that has been provided.
These are discussed in “Templates” on page 2-2.
Templates
Four templates found in the directory
<matlab>/toolbox/webserver/wsdemos simplify the process of creating
a MATLAB Web Server application:
•
input_template.html
•
output_template.html
•mfile_template.m
•tmfile_template.m
Each template provides actual code that you need to incorporate into
your application plus instructions on how to modify the template where
necessary. If you follow the directions in these templates, you should be
able to create MATLAB Web Server applications with reasonable effort.
Additionally provided in
<matlab>/toolbox/webserver/wsdemos is
webmagic, a magic squares demonstration program. A magic square
produces the same sum along any row, column, or either of the two main
matrix diagonals. There are four files associated with
webmagic: