声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 10619|回复: 32

[HHT] emd工具箱的安装问题

  [复制链接]
发表于 2011-4-19 15:22 | 显示全部楼层 |阅读模式

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

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

x
实在不好意思开新帖来发这个问题。
搜索并浏览过往的很多相关的帖子,但还是没有找到我这个问题的解决办法,自己有心去解决,但限于能力有限,效果甚微。不得以在此求助。

emd的工具箱,参考xray的帖子http://forum.vibunion.com/thread-55430-1-1.html下了相应的pack_emd的压缩包,解压放到matlab的toolbox目录下(放哪应该无所谓,只要路径加到matlab里就行了吧),再按照帖子http://forum.vibunion.com/thread-40562-1-33.html中9楼的办法,分别进行了三步安装(先装了vc++6.0);1,mbuild -setup ;2,mex -setup,均可以成功,但第3步,install_emd时,提示:
>> install_emd
??? Undefined function or variable 'install_emd'.

未定义的函数或变量,这个步骤的意思是什么?

请高人们解答,谢谢!

本帖被以下淘专辑推荐:

回复
分享到:

使用道具 举报

 楼主| 发表于 2011-4-19 16:29 | 显示全部楼层
N=100;
n=1:N;
fs=1000;
t=n/fs;
fx=10;
fy=50;
x=cos(2*pi*fx*t);
y=10*cos(2*pi*fy*t);
z=x+y;
data=z;
%plot(z),grid
emd(data)
运行以上代码,报以下错误。路径已经加入。
??? Undefined function or method 'emd' for input arguments of type 'double'.

Error in ==> Untitled3 at 12
emd(data)
 楼主| 发表于 2011-4-20 08:09 | 显示全部楼层
以前的高手们都不在了,还是现在的新人们都不热情了,异或是我的问题太简单了?
谁能帮我解答一下?
 楼主| 发表于 2011-4-20 08:17 | 显示全部楼层
本帖最后由 whapril 于 2011-4-20 08:19 编辑

好了,问题解决了,
刚运行前面那个程序还是以前的错误,然后再试了试install_emd,突然就可以了。
将文件夹名称emd改成别的了,不知是不是这个原因。
>> install_emd
cemdc.c
D:\myemd\package_emd\EMDs\src\cemdc.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

  D:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc.c' failed.

cemdc.c
D:\myemd\package_emd\EMDs\src\cio.c(121) : warning C4018: '!=' : signed/unsigned mismatch
D:\myemd\package_emd\EMDs\src\clocal_mean.c(58) : error C2065: 'M_PI' : undeclared identifier

  D:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc.c' failed.

cemdc_fix.c
D:\myemd\package_emd\EMDs\src\cemdc_fix.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

  D:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc_fix.c' failed.

cemdc_fix.c
D:\myemd\package_emd\EMDs\src\cio_fix.c(104) : warning C4018: '!=' : signed/unsigned mismatch
D:\myemd\package_emd\EMDs\src\clocal_mean.c(58) : error C2065: 'M_PI' : undeclared identifier

  D:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc_fix.c' failed.

cemdc2.c
D:\myemd\package_emd\EMDs\src\cemdc2.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

  D:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc2.c' failed.

cemdc2.c
D:\myemd\package_emd\EMDs\src\cio.c(121) : warning C4018: '!=' : signed/unsigned mismatch
D:\myemd\package_emd\EMDs\src\clocal_mean2.c(62) : error C2065: 'M_PI' : undeclared identifier

  D:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc2.c' failed.

cemdc2_fix.c
D:\myemd\package_emd\EMDs\src\cemdc2_fix.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

  D:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc2_fix.c' failed.

cemdc2_fix.c
D:\myemd\package_emd\EMDs\src\cio_fix.c(104) : warning C4018: '!=' : signed/unsigned mismatch
D:\myemd\package_emd\EMDs\src\clocal_mean2.c(62) : error C2065: 'M_PI' : undeclared identifier

  D:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc2_fix.c' failed.

Warning: The compilation of the following files failed:
> In make_emdc at 48
  In install_emd at 26
cemdc.c
cemdc_fix.c
cemdc2.c
cemdc2_fix.c

Some errors occurred during compilation. See details above.

Installation complete. Run index_emd for a list of functions.

IMPORTANT: After running INSTALL_EMD you must run the "savepath" command to save the installation
but be careful that if you previously removed parts of the path (using e.g. the "rmpath" command)
these will be permanently removed after you run "savepath"
>>

评分

1

查看全部评分

发表于 2011-4-27 18:37 | 显示全部楼层
我是按照这个装的,安装之后跟楼主3的结果是一样的,可是开始菜单里面工具箱还是没有EMD啊?这个工具箱要怎么用啊?
谢谢了啊!!!
发表于 2011-5-9 16:59 | 显示全部楼层

谢谢帮助,受益匪浅
发表于 2011-8-16 14:58 | 显示全部楼层
回复 4 # whapril 的帖子

我也遇到和你一样的问题,但是没有你你们幸运啊,在运行也不好使,仍然是那个问题,肿么办啊?
发表于 2011-8-16 15:09 | 显示全部楼层
已解决,路径的问题,大家不要在犯这样的错误哦~~

点评

赞成: 3.0
赞成: 3
这个问题要多加注意哦  发表于 2011-9-3 08:58
发表于 2011-8-31 16:36 | 显示全部楼层
按照set path的方法加入路径后,运行install_emd,出现了如下的错误:
找不到 D:\matlab\toolbox\package_emd\EMDs\../emdc.dll.exp
找不到 D:\matlab\toolbox\package_emd\EMDs\../emdc.dll.lib
找不到 D:\matlab\toolbox\package_emd\EMDs\../emdc_fix.dll.exp
找不到 D:\matlab\toolbox\package_emd\EMDs\../emdc_fix.dll.lib
lcc preprocessor error: cemdc.c:19 Could not find include file <complex.h>
Error cemdc.c: .\cio.h: 31  syntax error; found `*' expecting `;'
Error cemdc.c: .\cio.h: 31  skipping `*' `y'
Error cemdc.c: .\cio.h: 39  syntax error; found `*' expecting `;'
Error cemdc.c: .\cio.h: 39  skipping `*' `pointer'
Error cemdc.c: .\cio.h: 53  syntax error; found `*' expecting `)'
Error cemdc.c: .\cio.h: 53  skipping `*' `,'
Error cemdc.c: .\cio.h: 53  missing name for parameter 1 to function `add_imf'
Error cemdc.c: .\cio.h: 53  syntax error; found `int' expecting `{'
Error cemdc.c: .\cio.h: 53  empty declaration
Error cemdc.c: .\cio.h: 53  syntax error; found `)' expecting `;'
Error cemdc.c: .\cio.h: 53  skipping `)'
Error cemdc.c: .\cextr.h: 28  syntax error; found `*' expecting `)'
Error cemdc.c: .\cextr.h: 28  skipping `*' `,'
Error cemdc.c: .\cextr.h: 28  syntax error; found `double' expecting `;'
Error cemdc.c: .\cextr.h: 28  empty declaration
Error cemdc.c: .\cextr.h: 28  syntax error; found `,' expecting `;'
Error cemdc.c: .\cextr.h: 28  skipping `,'
Error cemdc.c: .\cextr.h: 28  empty declaration
Error cemdc.c: .\cextr.h: 28  syntax error; found `,' expecting `;'
Error cemdc.c: .\cextr.h: 28  too many errors

  D:\MATLAB\BIN\WIN32\MEX.PL: Error: Compile of 'cemdc.c' failed.

找不到 D:\matlab\toolbox\package_emd\EMDs\../cemdc.dll.exp
找不到 D:\matlab\toolbox\package_emd\EMDs\../cemdc.dll.lib
lcc preprocessor error: cemdc_fix.c:19 Could not find include file <complex.h>
Error cemdc_fix.c: .\cio_fix.h: 27  syntax error; found `*' expecting `;'
Error cemdc_fix.c: .\cio_fix.h: 27  skipping `*' `y'
Error cemdc_fix.c: .\cio_fix.h: 34  syntax error; found `*' expecting `;'
Error cemdc_fix.c: .\cio_fix.h: 34  skipping `*' `pointer'
Error cemdc_fix.c: .\cio_fix.h: 48  syntax error; found `*' expecting `)'
Error cemdc_fix.c: .\cio_fix.h: 48  skipping `*' `,'
Error cemdc_fix.c: .\cio_fix.h: 48  missing name for parameter 1 to function `add_imf'
Error cemdc_fix.c: .\cio_fix.h: 48  syntax error; found `int' expecting `{'
Error cemdc_fix.c: .\cio_fix.h: 48  empty declaration
Error cemdc_fix.c: .\cio_fix.h: 48  syntax error; found `)' expecting `;'
Error cemdc_fix.c: .\cio_fix.h: 48  skipping `)'
Error cemdc_fix.c: .\cextr.h: 28  syntax error; found `*' expecting `)'
Error cemdc_fix.c: .\cextr.h: 28  skipping `*' `,'
Error cemdc_fix.c: .\cextr.h: 28  syntax error; found `double' expecting `;'
Error cemdc_fix.c: .\cextr.h: 28  empty declaration
Error cemdc_fix.c: .\cextr.h: 28  syntax error; found `,' expecting `;'
Error cemdc_fix.c: .\cextr.h: 28  skipping `,'
Error cemdc_fix.c: .\cextr.h: 28  empty declaration
Error cemdc_fix.c: .\cextr.h: 28  syntax error; found `,' expecting `;'
Error cemdc_fix.c: .\cextr.h: 28  too many errors
发表于 2011-8-31 16:37 | 显示全部楼层
请问怎么回事啊 ?谁能帮忙解决一下啊
发表于 2011-8-31 16:59 | 显示全部楼层
thank you for your sharing
发表于 2011-8-31 17:00 | 显示全部楼层
thank you for your sharing

评分

1

查看全部评分

发表于 2011-9-3 08:59 | 显示全部楼层
回复 9 # caoyekobe 的帖子

问题解决了吗
发表于 2011-9-5 11:39 | 显示全部楼层
回复 13 # chenlu1986 的帖子

解决了 但是提示缺少instfreq
发表于 2011-9-5 14:53 | 显示全部楼层
回复 14 # caoyekobe 的帖子

下个时频工具箱,里面有这个函数。
你先找找,找不到留言我发给你
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-11-25 08:41 , Processed in 0.071975 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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