声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1032|回复: 1

麻烦高手看一下:该小波分解重够哪里错了?

[复制链接]
发表于 2006-4-2 21:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
<P>clear<BR>t=0:0.01:2*pi;<BR>if t&gt;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>  [t,d]=wpdec(x,3,'db1','shannon');<BR>  plottree(t)<BR><BR><BR><BR><BR>显示错误为:<BR>??? Error using ==&gt; wtreemgr<BR>*</P>
<P>Error in ==&gt; E:\MATLAB6p5\toolbox\wavelet\waveobsolete\plottree.m<BR>On line 35  ==&gt;     order = wtreemgr('order',Ts);</P>
<P>Error in ==&gt; e:\MATLAB6p5\work\xiaobofenxi.m<BR>On line 14  ==&gt;   plottree(t)<BR><BR>谢了  实在不知道哪里错了</P>
回复
分享到:

使用道具 举报

发表于 2006-4-3 09:36 | 显示全部楼层

回复:(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&gt;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>[t,d]=wpdec(x,3,'db1','shannon');<BR></FONT>  plottree(t)<BR><BR><BR><BR><BR>显示错误为:<BR>??? Error using ==&gt; wtreemgr<BR>*</P>
<P>Error in ==&gt; E:\MATLAB6p5\toolbox\wavelet\waveobsolete\plottree.m<BR>On line 35  ==&gt;     order = wtreemgr('order',Ts);</P>
<P>Error in ==&gt; e:\MATLAB6p5\work\xiaobofenxi.m<BR>On line 14  ==&gt;   plottree(t)<BR><BR>谢了  实在不知道哪里错了</P></DIV><BR>错误出在plottree中,matlab中没有自带这个函数吧<BR><FONT color=#ff0000>另外wpdec返回的应该是一个参数,你这样写成两个放回参数那都是0了</FONT>
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-10-4 23:31 , Processed in 0.066218 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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