delusa 发表于 2007-9-23 20:50

我在LabVIEW中使用matlab script遇到问题.

我在LabVIEW中使用matlab script,
程序应该画五个图,现在只有第一个,
在matlab中可以画五个
请帮忙看一看

clf;
t=1:500;
t=t*1/2000;
x=sin(2*pi*20*t);
y=0.4*sin(2*pi*40*t+140);
z=x+y;
plot(t,z,'r');
imf=emd(z);
emd_visu(z,1:length(z),imf)
=hhspectrum(imf);
=toimage(A,f);
disp_hhs(im);
colormap(flipud(gray))

无水1324 发表于 2007-9-24 10:33

回复 #1 delusa 的帖子

你这个程序在matlab中直接运行出问题


Warning: File: C:\MATLAB6p5\work\extr.m Line: 13 Column: 48
The logical expression(s) involving OR and AND operators
may have returned a different result in previous versions of MATLAB due to
a change in logical operator precedence.
Use parentheses to make your code insensitive to this change.
Please type "help precedence" for more information.
(Type "warning off MATLAB:m_warning_or_and_precedence" to suppress this warning.)
> In C:\MATLAB6p5\work\emd.m at line 148
Warning: File: C:\MATLAB6p5\work\extr.m Line: 16 Column: 50
The logical expression(s) involving OR and AND operators
may have returned a different result in previous versions of MATLAB due to
a change in logical operator precedence.
Use parentheses to make your code insensitive to this change.
Please type "help precedence" for more information.
(Type "warning off MATLAB:m_warning_or_and_precedence" to suppress this warning.)
> In C:\MATLAB6p5\work\emd.m at line 148
Warning: File: C:\MATLAB6p5\work\extr.m Line: 19 Column: 62
The logical expression(s) involving OR and AND operators
may have returned a different result in previous versions of MATLAB due to
a change in logical operator precedence.
Use parentheses to make your code insensitive to this change.
Please type "help precedence" for more information.
(Type "warning off MATLAB:m_warning_or_and_precedence" to suppress this warning.)
> In C:\MATLAB6p5\work\emd.m at line 148
??? Error: File: C:\MATLAB6p5\work\extr.m Line: 26 Column: 28
")" expected, "identifier" found.
Error in ==> C:\MATLAB6p5\work\emd.m
On line 148==>    = extr(m);

zhangnan3509 发表于 2007-9-24 12:05

回复 #1 delusa 的帖子

你在三个版面发相同的帖子,着急我理解,可这样总归不好吧

yueluowuti 发表于 2007-9-26 10:48

楼主,能否给我一份<<小议EMD程序使用>>的电子稿啊,我看不到你的文章.急用啊
谢谢啦.
               yueluowuti0637@sina.com
页: [1]
查看完整版本: 我在LabVIEW中使用matlab script遇到问题.