麻烦高手看一下:该小波分解重够哪里错了?
<P>clear<BR>t=0:0.01:2*pi;<BR>if t>0.2<BR>x=8*sin(60*pi*t+pi/3)+6*sin(240*pi*t+pi/2)...<BR>+sin(300*pi*t+pi/6)+20*sin(500*pi*t+pi/3)*exp(-20*(t-0.2));<BR> else<BR> x=8*sin(60*pi*t+pi/3)+6*sin(240*pi*t+pi/2) +sin(300*pi*t+pi/6);<BR>end<BR>figure(1)<BR>subplot(2,1,1)<BR>plot(x)<BR>title('原始信号')<BR>=wpdec(x,3,'db1','shannon');<BR>plottree(t)<BR><BR><BR><BR><BR>显示错误为:<BR>??? Error using ==> wtreemgr<BR>*</P><P>Error in ==> E:\MATLAB6p5\toolbox\wavelet\waveobsolete\plottree.m<BR>On line 35==> order = wtreemgr('order',Ts);</P>
<P>Error in ==> e:\MATLAB6p5\work\xiaobofenxi.m<BR>On line 14==> plottree(t)<BR><BR>谢了实在不知道哪里错了</P>
回复:(angang)麻烦高手看一下:该小波分解重够哪里错...
<DIV class=quote><B>以下是引用<I>angang</I>在2006-4-2 21:12:38的发言:</B><BR><P>clear<BR>t=0:0.01:2*pi;<BR>if t>0.2<BR>x=8*sin(60*pi*t+pi/3)+6*sin(240*pi*t+pi/2)...<BR>+sin(300*pi*t+pi/6)+20*sin(500*pi*t+pi/3)*exp(-20*(t-0.2));<BR>else<BR>x=8*sin(60*pi*t+pi/3)+6*sin(240*pi*t+pi/2) +sin(300*pi*t+pi/6);<BR>end<BR>figure(1)<BR>subplot(2,1,1)<BR>plot(x)<BR>title('原始信号')<BR><FONT color=#ff0000>=wpdec(x,3,'db1','shannon');<BR></FONT>plottree(t)<BR><BR><BR><BR><BR>显示错误为:<BR>??? Error using ==> wtreemgr<BR>*</P>
<P>Error in ==> E:\MATLAB6p5\toolbox\wavelet\waveobsolete\plottree.m<BR>On line 35==> order = wtreemgr('order',Ts);</P>
<P>Error in ==> e:\MATLAB6p5\work\xiaobofenxi.m<BR>On line 14==> plottree(t)<BR><BR>谢了实在不知道哪里错了</P></DIV><BR>错误出在plottree中,matlab中没有自带这个函数吧<BR><FONT color=#ff0000>另外wpdec返回的应该是一个参数,你这样写成两个放回参数那都是0了</FONT>
页:
[1]