whapril 发表于 2011-4-19 15:22

emd工具箱的安装问题

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

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'.

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

请高人们解答,谢谢!

whapril 发表于 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)

whapril 发表于 2011-4-20 08:09

以前的高手们都不在了,还是现在的新人们都不热情了,异或是我的问题太简单了?
谁能帮我解答一下?

whapril 发表于 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"
>>

憨憨帝 发表于 2011-4-27 18:37

我是按照这个装的,安装之后跟楼主3的结果是一样的,可是开始菜单里面工具箱还是没有EMD啊?这个工具箱要怎么用啊?
谢谢了啊!!!

entapple 发表于 2011-5-9 16:59


谢谢帮助,受益匪浅

柳一 发表于 2011-8-16 14:58

回复 4 # whapril 的帖子

我也遇到和你一样的问题,但是没有你你们幸运啊,在运行也不好使,仍然是那个问题,肿么办啊?

柳一 发表于 2011-8-16 15:09

已解决,路径的问题,大家不要在犯这样的错误哦~~{:{20}:}

caoyekobe 发表于 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: 31syntax error; found `*' expecting `;'
Error cemdc.c: .\cio.h: 31skipping `*' `y'
Error cemdc.c: .\cio.h: 39syntax error; found `*' expecting `;'
Error cemdc.c: .\cio.h: 39skipping `*' `pointer'
Error cemdc.c: .\cio.h: 53syntax error; found `*' expecting `)'
Error cemdc.c: .\cio.h: 53skipping `*' `,'
Error cemdc.c: .\cio.h: 53missing name for parameter 1 to function `add_imf'
Error cemdc.c: .\cio.h: 53syntax error; found `int' expecting `{'
Error cemdc.c: .\cio.h: 53empty declaration
Error cemdc.c: .\cio.h: 53syntax error; found `)' expecting `;'
Error cemdc.c: .\cio.h: 53skipping `)'
Error cemdc.c: .\cextr.h: 28syntax error; found `*' expecting `)'
Error cemdc.c: .\cextr.h: 28skipping `*' `,'
Error cemdc.c: .\cextr.h: 28syntax error; found `double' expecting `;'
Error cemdc.c: .\cextr.h: 28empty declaration
Error cemdc.c: .\cextr.h: 28syntax error; found `,' expecting `;'
Error cemdc.c: .\cextr.h: 28skipping `,'
Error cemdc.c: .\cextr.h: 28empty declaration
Error cemdc.c: .\cextr.h: 28syntax error; found `,' expecting `;'
Error cemdc.c: .\cextr.h: 28too 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: 27syntax error; found `*' expecting `;'
Error cemdc_fix.c: .\cio_fix.h: 27skipping `*' `y'
Error cemdc_fix.c: .\cio_fix.h: 34syntax error; found `*' expecting `;'
Error cemdc_fix.c: .\cio_fix.h: 34skipping `*' `pointer'
Error cemdc_fix.c: .\cio_fix.h: 48syntax error; found `*' expecting `)'
Error cemdc_fix.c: .\cio_fix.h: 48skipping `*' `,'
Error cemdc_fix.c: .\cio_fix.h: 48missing name for parameter 1 to function `add_imf'
Error cemdc_fix.c: .\cio_fix.h: 48syntax error; found `int' expecting `{'
Error cemdc_fix.c: .\cio_fix.h: 48empty declaration
Error cemdc_fix.c: .\cio_fix.h: 48syntax error; found `)' expecting `;'
Error cemdc_fix.c: .\cio_fix.h: 48skipping `)'
Error cemdc_fix.c: .\cextr.h: 28syntax error; found `*' expecting `)'
Error cemdc_fix.c: .\cextr.h: 28skipping `*' `,'
Error cemdc_fix.c: .\cextr.h: 28syntax error; found `double' expecting `;'
Error cemdc_fix.c: .\cextr.h: 28empty declaration
Error cemdc_fix.c: .\cextr.h: 28syntax error; found `,' expecting `;'
Error cemdc_fix.c: .\cextr.h: 28skipping `,'
Error cemdc_fix.c: .\cextr.h: 28empty declaration
Error cemdc_fix.c: .\cextr.h: 28syntax error; found `,' expecting `;'
Error cemdc_fix.c: .\cextr.h: 28too many errors

caoyekobe 发表于 2011-8-31 16:37

请问怎么回事啊 ?谁能帮忙解决一下啊

copyleft 发表于 2011-8-31 16:59

thank you for your sharing

copyleft 发表于 2011-8-31 17:00

thank you for your sharing

chenlu1986 发表于 2011-9-3 08:59

回复 9 # caoyekobe 的帖子

问题解决了吗

caoyekobe 发表于 2011-9-5 11:39

回复 13 # chenlu1986 的帖子

解决了 但是提示缺少instfreq

chenlu1986 发表于 2011-9-5 14:53

回复 14 # caoyekobe 的帖子

下个时频工具箱,里面有这个函数。
你先找找,找不到留言我发给你
页: [1] 2 3
查看完整版本: emd工具箱的安装问题