Installation guide
Additional Application Examples
2-17
This input document allows you to set the characteristics of the peaks
plot you want to generate. This is a more complex input document than
the one we used with
webmagic, as it makes use of HTML frames. The
code in the source file
<form action="/cgi–bin/matweb.exe" method="POST"
target="outputwindow">
<input type="hidden" name="mlmfile" value="webpeaks">
calls the webpeaks function and targets the output to a frame on the
lower portion of the input document itself.
In addition to the code necessary to compute and display the
peaks
function, the file
webpeaks.m contains additional code specific to the
transmission of graphics data across the Web. In
webpeaks.m the code
mlid = getfield(h,'mlid')
extracts mlid from the structure h.
mlid is a unique identifier that matlabserver provides. Using the value
of
mlid to construct filenames ensures that filenames are unique. It can