我做了一个例子主要有5个文件:
webtttt.html webtttt1.html webtttt2.html webtttttempt.html webttttrnd.m
1.webtttt1.html文件
<!-- $Revision: 1.2 $ -->
<HTML>
<HEAD>
<TITLE>Simulation of Future Stock Prices</TITLE>
</HEAD>
<frameset cols="40%, *" border=0>//将首页分为两个界面
<frame scrolling=auto
src="webtttt.html" //左面调用webtttt.html
name="leftframe"
marginwidth=10
marginheight=1
frameborder=0>
<frame scrolling=auto
src="webtttttemp.html" //右面调用webtttttempt.html
marginwidth=0 marginheight=0
name="outputwindow" frameborder=0>
</frameset>
</body>
</HTML>
2.webtttt.html //左边的一部分
<!-- $Revision: 1.2 $ -->
<html>
<head>
<title>test</title>
</head>
<body bgcolor="#FFFFFF">
<div align="center"><font color="#000000" size="4" face="Arial">
<i>choose or input signal</i></font></div>
<form action="/cgi-bin/matweb" method="POST" target="outputwindow">
<input type="hidden" name="mlmfile" value="webttttrnd">
<table border="2">
<tr>
<td width="140" align="right">
信号1 : </td>
<td width="161" align="left">
<select name="signalone" id="signalone">

本文提供了一个实例,展示了如何在Linux下通过MATLAB编写程序,并利用web页面显示运行结果。主要涉及5个文件:webtttt.html、webtttt1.html、webtttt2.html、webtttttempt.html和webttttrnd.m。用户在webtttt.html上选择或输入信号,然后提交,MATLAB程序webttttrnd.m根据输入生成图形,并在webtttt2.html中显示。实现过程中需要注意文件位置、配置matweb.conf以及权限设置。
最低0.47元/天 解锁文章
2606

被折叠的 条评论
为什么被折叠?



