MATLAB Web Server |
 |
Directory Structure
MATLAB is distributed in compressed format on CD. The installation procedure moves the files to your hard disk, decompresses them, and installs them into your MATLAB root directory. The installation provides a version of the CGI client program matweb
for all platforms, regardless of which platform matlabserver
is licensed for. This allows your matweb
client to run on a different machine and platform from your copy of matlabserver
. The supported platforms are:
- PC running Windows NT (
win32
)
- Sun workstation running Solaris (
sol2
)
- PC running Linux (
glnx86
)
In the directory structure shown below, replace the pathname component arch
with the appropriate identifier for your platform.
After installation of the MATLAB Web Server, your MATLAB directory should include these additional files and subdirectories.
Table A-1: <matlab>/webserver
File
|
Purpose
|
matlabsever.conf
|
matlabserver options
|
webboot
|
Start matlabserver script
|
webconf
|
matlabserver configuration file script
|
webdown
|
Stop matlabserver script
|
webstart
|
matlabserver restart script
|
webstat
|
Report matlabserver status
|
Note
If you create a hosts.conf file to control which machines can access the MATLAB Web Server, you must place that file in this directory.
|
Table A-2: <matlab>/webserver/bin/arch
File
|
Purpose
|
matlabserver
|
The MATLAB Web Server binary
|
matlabserver.exe
|
The MATLAB Web Server binary (Windows NT)
|
matweb
|
MATLAB TCP/IP client of matlabserver (Solaris and Linux)
|
matweb.exe
|
MATLAB TCP/IP client of matlabserver (Windows NT)
|
You must also place a copy of the appropriate matweb
executable and matweb.conf
into the /cgi-bin
aliased subdirectory of the HTTP server root directory
.
Table A-3: <matlab>/toolbox/webserver/webserver
File
|
Purpose
|
htmlrep.mexsol (Solaris)
htmlrep.mexglx
(Linux)
htmlrep.dll (Windows NT)
|
Replace variable names with values in HTML document
|
matweb.m
|
Web Server main entry point
|
wscleanup.m
|
Purge stale files from directory
|
wsprintjpeg
|
Create JPEG file
|
wssetfield.m
|
Add new field or append to existing field
|
Table A-4: <matlab>/toolbox/webserver/wsdemos
File
|
Purpose
|
dummy.html
|
Temporary HTML document in bottom frame of webpeaks1.html
|
index.html
|
List of demos
|
input_template.html
|
HTML input template
|
matweb.conf
|
Sample matweb.conf file
|
mfile_template.m
|
M-file creation template
|
output_template.html
|
HTML output template
|
peaksplot.html
|
HTML document (input form) in top frame of webpeaks1.html
|
players.html
|
Softball players HTML output form
|
players.m
|
Softball statistics file
|
players.txt
|
Softball text data file
|
tplayers.m
|
Stand-alone test driver for players
|
tmfile_template.m
|
Test file template
|
thtmlrep.m
|
Test of htmlrep function
|
thtmlrep1.html
|
HTML input form
|
webmagic.m
|
Convert magic square into HTML table
|
webmagic1.html
|
Magic square input form
|
webmagic2.html
|
Magic square output template
|
twebmagic.m
|
Example stand-alone test of webmagic function
|
webpeaks.m
|
Web peaks plot
|
File
|
Purpose
|
webpeaks1.html
|
HTML frame
|
webpeaks2.html
|
peaks plot output form
|
webstock.html
|
Stock price simulation input form
|
webstock1.html
|
Stock price simulation main frame
|
webstock2.html
|
Stock price simulation output template
|
webstockrnd.m
|
Stock future price path simulation
|
webstocktemp.html
|
HTML output place holder
|
twebstockrnd.m
|
Stand-alone test driver for webstockrnd
|
wstextread.m
|
Place a delimited file into a cell array of strings
|
| wssetfield | | Troubleshooting Web Server |  |