声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1100|回复: 2

[编程技巧] emd前面运行一切正常!第45行错了,帮看看,大侠们

[复制链接]
发表于 2013-3-8 09:11 | 显示全部楼层 |阅读模式

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

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

x
>> clear;
t=1:500;
t=t*1/2000;
x=sin(2*pi*20*t+5);
y=0.4*sin(2*pi*40*t+140);
z=x+y;
subplot(2,2,1)
plot(x)
title('原信号z')
subplot(2,2,2)
plot(y)
title('分量信号x')
subplot(2,2,3)
plot(z)
title('分量信号y')
imf=emd(z);
emd_visu(z,1:length(z),imf)
>> [A,f,tt]=hhspectrum(imf);
??? Undefined function or method 'instfreq' for input arguments of type 'double'.
Error in ==> hhspectrum at 45
  f(i,:)=instfreq(an(i,:)',tt,l)';

帮看看这个  matlab中 hhspectrum.m 文件 中         f(i,:)=instfreq(an(i,:)',tt,l)';哪错了???
依照如图  

45行

45行

本帖被以下淘专辑推荐:

回复
分享到:

使用道具 举报

发表于 2013-3-8 09:48 | 显示全部楼层
函数instfreq不存在
发表于 2013-3-19 13:24 | 显示全部楼层
建议删除,无意义贴!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-5-10 08:38 , Processed in 0.072204 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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