Linux下MATLAB中运行MATLAB程序并在web中显示结果

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

我做了一个例子主要有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                    

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值