声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2321|回复: 3

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

[复制链接]
发表于 2007-9-23 20:50 | 显示全部楼层 |阅读模式

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

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

x
我在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)
[A,f,tt]=hhspectrum(imf);
[im,tt]=toimage(A,f);
disp_hhs(im);
colormap(flipud(gray))
回复
分享到:

使用道具 举报

发表于 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  ==>   [indmin,indmax,indzer] = extr(m);
发表于 2007-9-24 12:05 | 显示全部楼层

回复 #1 delusa 的帖子

你在三个版面发相同的帖子,着急我理解,可这样总归不好吧
发表于 2007-9-26 10:48 | 显示全部楼层
楼主,能否给我一份<<小议EMD程序使用>>的电子稿啊,我看不到你的文章.急用啊
谢谢啦.
                 yueluowuti0637@sina.com
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-9-29 18:28 , Processed in 0.070525 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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