MATLAB Web Server    

Creating Output Documents

Output Template
The file output_template.html provides the code needed to create a MATLAB Web Server output document. An abbreviated version looks like:

webmagic Output
The webmagic output document contains three variables:

$msquare$ -- the completed magic square

$msize$ -- the size of the magic square

$msum$ -- the magic square sum along its rows, columns, or diagonals

Using htmlrep the webmagic function replaces these variables with actual values, using the input obtained from webmagic1.html.

The source for the webmagic2.html template document looks like:

When displayed in a browser, webmagic2.html looks like


 Creating MATLAB Web Server M-Files Debugging Your Application