matlab出现错误了,求大神指点

这个是程序:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%LMS与RLS性能对比%%%%%%%%%%%%%%%%%... 这个是程序:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%LMS与RLS性能对比
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
clc
close all
w=3.2;
step_len=0.075;
variance_v=0.001;
repeat_times=200;
iteration_times=500;
filt_len=2;
delay=fix(filt_len/2)-1;
%%%%%%%%%%%%%%%%%%%%变量及数组初始化%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Chan_factor=(1+cos(2*pi*([1:1:3]-2)/w))/2;
Square_err=zeros(repeat_times,iteration_times);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Square_err_lms=my_lms(11,0.025,1000);
Square_err_rls=my_rls(11,0.975,1000);

figure(1)
semilogy(1:1000,Square_err_rls,1:1000,Square_err_lms);
legend('RLS','LMS');
Xlabel('Number of iteration,n');
Ylabel('Ensembel-average square error');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Square_err_lms=my_lms(11,0.1,500);
Square_err_rls=my_rls(11,0.999,500);

figure(2)
semilogy(1:500,Square_err_rls,1:500,Square_err_lms);
legend('RLS','LMS');
Xlabel('Number of iteration,n');
Ylabel('Ensembel-average square error');
运行以后就会出现这个:
??? Undefined function or method 'my_lms' for input arguments of type 'double'.

Error in ==> Untitledq at 19
Square_err_lms=my_lms(11,0.025,1000);

求解释,求指点
展开
 我来答
xujiamingnil
2013-05-03 · TA获得超过114个赞
知道小有建树答主
回答量:82
采纳率:0%
帮助的人:94.2万
展开全部
my_lms()

my_rls()
这两个函数,系统找不到或者没有定义。

你看看是不是有叫“my_lms.m”和“my_rls.m”的文件
这三个放在一个文件夹内,在运行一下主程序。
追问
不靠谱啊
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式