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);
求解释,求指点 展开
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%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);
求解释,求指点 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询