Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2008-05-24
年龄: 40
帖子: 3
声望力: 0 ![]() |
![]()
最近忙毕业设计出现了一个问题,愁死了都,谁知道的帮忙说下哈!!1
在设计MATLAB与网页互联的时候,输入网面为: <form action="/cgi-bin/matweb.exe" method="post"> <input type="hidden" name="mlmfile" value="ggj"> <input name="fz" type="text" size="20" /> <input name="fm" type="text" size="20" /> <input type="submit"name="Submit"value="提交" /> 我的.M文件是这样写的: function retstr=ggj(in) retstr=char(''); cd(in.mldir); num=str2num(in.fz); den=str2num(in.fm); sys=tf(num,den); f=figure('visible','off'); pzmap(sys); drawnow; pic1=sprintf('%spic1.jpeg',in.mlid); wsprintjpeg(f,pic1); close(f); out.p=pic1; tmpfile=which('syfx12.html'); retstr=htmlrep(out,tmpfile); 输出网面的名字是syfx12.html,但是在输入数据提交时,却不能得到图形,在根目录里面也没有生成图形,只有一张空白的图片,这是怎么回事啊??? |
![]() |
![]() |
主题工具 | |
显示模式 | |
|
|
![]() |
||||
主题 | 主题作者 | 版面 | 回复 | 最后发表 |
【求助】文件内字符串查找和替换的问题 | efoxxx | MATLAB论坛 | 3 | 2012-07-12 17:18 |
【分享】解微分方程 | xiouluohaiou | MATLAB论坛 | 0 | 2008-01-27 16:13 |