happyhgx 发表于 2009-4-10 02:34

matlab帮我看下哪出错

function rs= frequent(h,outfile)
rs= char('');
s.zunibi=h.zunibi;
mlid= getfield(h,'mlid');
cd(h.mldir);
wscleanup('icons/ml*freq.jpeg',1,'icons/');
jiaopin= str2double(h.jiaopin);
zunibi= str2double(h.zunibi);
r1=;
s.r=r1 ;
n1=2*jiaopin*zunibi;
n2=jiaopin*jiaopin;
den=;
num=;
t=0:0.1:20;
=step(num,den,t);
f=figure('visible','off');
plot(t,y);
drawnow;
s.GraphFileName= sprintf('icons/%sfreq.jpeg',mlid);
wsprintjpeg(f,s.GraphFileName);
s.GraphFileName= sprintf('icons/%sfreq.jpeg',mlid);
close all;
templatefile=which('frequent2.html');
if(nargin==1)
rs= htmlrep(s,templatefile);
else if(nargin==2)
rs= htmlrep(s,templatefile,outfile);
end


RUN时出现
??? Error using ==> run
Error: File: E:\webserver\frequent.m Line: 25 Column: 1
At least one END is missing: the statement may begin here.

ucihqtep 发表于 2009-4-23 11:38

在最后一行下面再加一个end
页: [1]
查看完整版本: matlab帮我看下哪出错