matlab小波除噪x =1.0e+004 *0.1997 0.1510 0.5253 0.0000 0.0411 0.00000.1998 0.1602 0.5579 0.0000 0.0466 0.00000.1999 0.1663 0.5804 0.0000 0.0490 0.00010.2000 0.1791 0.6274 0.0000 0.0573 0.00010.2001 0.1977 0.6963 0.0000 0.0693 0.00010.2002 0.2233
来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 07:10:33
matlab小波除噪x =1.0e+004 *0.1997 0.1510 0.5253 0.0000 0.0411 0.00000.1998 0.1602 0.5579 0.0000 0.0466 0.00000.1999 0.1663 0.5804 0.0000 0.0490 0.00010.2000 0.1791 0.6274 0.0000 0.0573 0.00010.2001 0.1977 0.6963 0.0000 0.0693 0.00010.2002 0.2233
matlab小波除噪
x =
1.0e+004 *
0.1997 0.1510 0.5253 0.0000 0.0411 0.0000
0.1998 0.1602 0.5579 0.0000 0.0466 0.0000
0.1999 0.1663 0.5804 0.0000 0.0490 0.0001
0.2000 0.1791 0.6274 0.0000 0.0573 0.0001
0.2001 0.1977 0.6963 0.0000 0.0693 0.0001
0.2002 0.2233 0.7912 0.0000 0.0957 0.0001
0.2003 0.2556 0.9098 0.0000 0.1217 0.0001
0.2004 0.3035 1.0845 0.0000 0.1657 0.0001
0.2005 0.3468 1.2404 0.0000 0.2077 0.0001
0.2006 0.3907 1.3939 0.0000 0.2643 0.0001
0.2007 0.4676 1.6629 0.0000 0.3755 0.0001
0.2008 0.5794 2.0490 0.0000 0.4544 0.0001
0.2009 0.6530 2.2920 0.0000 0.5370 0.0001
>> N=length(x);
[C,1]=wavedec(x,5,'db5');
a5=wrcoef('a',c,1,'db5',5);
d5=wrcoef('d',C,1,'db5',5);
d4=wrcoef('d',C,1,'db5',4);
d3=wrcoef('d',C,1,'db5',3);
d2=wrcoef('d',C,l,'db5',2);
dl=wrcoef('d',C,1,'db5',1);
figure(1)
subplot(6,l,1);
plot(a5,'LineWidth',2);
ylabel('a5');
subplot(6,1,2);
plot(d5,'LineWidth',2);
ylabel('d5');
subplot(6,1,3);
plot(d4,'LineWidth',2);
ylabel('d4');
subplot(6,1,4);
plot(d3,'LineWidth',2);
ylabel('d3');
subplot(6,l,5);
plot(d2,'LineWidth',2);
ylabel('d2');
subplot(6,1,6);
plot(dl,'LineWidth',2);
ylabel('d1');
xlabel('time');
%shape of the wave in time field
figure(2);
subplot(2,1,1);
plot(1994:2006,x,'LineWidth',2);
xlabel('time');
ylabel('original signal');
%wipes off noise and rebuild signal
subplot(2,1,2);
y=a5+d5+d4+d3;
plot(1997:2009,Y,'LineWidth',2);
xlabel('time');
ylabel('rebuild signal');
Error:An array for multiple LHS assignment cannot
contain numeric value.
为何 会出现?Error:An array for multiple LHS assignment cannot
contain numeric value.
clc;clear;
x=xlsread('t.xls')
N=length(x);
[C,l]=wavedec(x,5,'db5');
a5=wrcoef('a',c,l,'db5',5);
d5=wrcoef('d',C,l,'db5',5);
d4=wrcoef('d',C,l,'db5',4);
d3=wrcoef('d',C,l,'db5',3);
d2=wrcoef('d',C,l,'db5',2);
dl=wrcoef('d',C,l,'db5',1);
figure(1)
subplot(6,l,1);
plot(a5,'LineWidth',2);
ylabel('a5');
subplot(6,1,2);
plot(d5,'LineWidth',2);
ylabel('d5');
subplot(6,1,3);
plot(d4,'LineWidth',2);
ylabel('d4');
subplot(6,1,4);
plot(d3,'LineWidth',2);
ylabel('d3');
subplot(6,l,5);
plot(d2,'LineWidth',2);
ylabel('d2');
subplot(6,1,6);
plot(dl,'LineWidth',2);
ylabel('d1');
xlabel('time');
%shape of the wave in time field
figure(2);
subplot(2,1,1);
plot(1997:2009,x,'LineWidth',2);
xlabel('time');
ylabel('original signal');
%wipes off noise and rebuild signal
subplot(2,1,2);
y=a5+d5+d4+d3;
plot(1997:2009,Y,'LineWidth',2);
xlabel('time');
ylabel('rebuild signal');
运行弹出?Undefined function or variable 'c'.为何会这样?
matlab小波除噪x =1.0e+004 *0.1997 0.1510 0.5253 0.0000 0.0411 0.00000.1998 0.1602 0.5579 0.0000 0.0466 0.00000.1999 0.1663 0.5804 0.0000 0.0490 0.00010.2000 0.1791 0.6274 0.0000 0.0573 0.00010.2001 0.1977 0.6963 0.0000 0.0693 0.00010.2002 0.2233
太多了吧,这个有很多源码免费下载:
matlabsky论坛
可以参考一下有没.
挺清晰的,有个信号通信版,上去就有一贴;
你就在这个版找吧.
我不懂信号处理的,你搜索下帖子最好.