注册 登录
编程论坛 Matlab

[求助]哪们仁兄帮下忙(有关MATLAB WebServer)

lhysld 发布于 2008-05-24 17:15, 836 次点击
最近忙毕业设计出现了一个问题,愁死了都,谁知道的帮忙说下哈!!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,但是在输入数据提交时,却不能得到图形,在根目录里面也没有生成图形,只有一张空白的图片,这是怎么回事啊???

是不是pzmap()这个函数的使用有问题啊?
1 回复
#2
lhysld2008-05-24 22:31
哭了,真的没有哪位大哥帮帮忙吗????
1