工大后院

 找回密码
 加入后院

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
查看: 1522|回复: 1

matlab帮我看下哪出错

[复制链接]
发表于 2009-4-10 02:34 | 显示全部楼层 |阅读模式
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=[jiaopin,zunibi];
s.r=r1 ;
n1=2*jiaopin*zunibi;
n2=jiaopin*jiaopin;
den=[1,n1,n2];
num=[n2];
t=0:0.1:20;
[y]=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.
发表于 2009-4-23 11:38 | 显示全部楼层
在最后一行下面再加一个end
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入后院

本版积分规则

QQ|Archiver|手机版|小黑屋|广告业务Q|工大后院 ( 粤ICP备10013660号 )

GMT+8, 2024-5-20 16:55

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表