24小时热门版块排行榜    

查看: 2374  |  回复: 6

zhuxiaoxun

新虫 (初入文坛)

[求助] 希尔伯特振动分解(HVD)的matlab程序 已有1人参与

各位高手谁有一个希尔伯特振动分解(Hilbert Vibration Decomposition,HVD)的matlab程序,能否提供一个。多谢啦!!!
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zxb05208

新虫 (初入文坛)

你现在有吗?
2楼2016-01-04 16:26:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Mr__Right

专家顾问 (著名写手)

【答案】应助回帖

源代码如下:
CODE:
function [Y,A,om_r,dev]=hvd(x,n,fp); % % x - initial signal, n - number of decomposed components % Y - decomposed components, A - component envelopes , % F_r - component relative angular frequency % F=Fs*om_r/2/pi - Absolute frequecy [Hz], Fs -sampling frequency, % dev=std(Y_i)/std(Y_1)) - relative standard deviation of the decomposed component % % Example:  [Y,A,om_r,dev]=hvd(x,2,0.02); % % LIMITATIONS: %    The sampling frequency Fs has to be in the range Fs=(20-80)*f0. %    The minimum of points in time domain is 230*3+1 = 691 % % © 2011 Michael Feldman % For use with the book "HILBERT TRANSFORM APPLICATION % IN MECHANICAL VIBRATION", John Wiley & Sons, 2011 %  if n>7; disp('Max number of components not greater than 7'); end if n<=0; disp('Number of components less than 1');Y=[];A=[];F_r=[];dev=[];return;end x=x(:); s(1)=std(x); if s(1)==0,Y=[];A=[];F_r=[];dev=[];disp('Zero signal');return,end; for k=1:n;     [At,Ft,phit]=inst(x,1);     omf=2*pi*lpf(Ft,fp);% Angular Frequency lowpass filtering (Smoothing)     [yi,Ai,phi]=synchdem(x,omf,fp);     Y(:,k)=yi; A(:,k)=Ai;     om_r(:,k)=omf;            % Angular Frequency, [Radians]         x=x-yi;         s(k)=std(x)/s(1);         if k == 7, dev=[1 diff(s)]; return,  end end dev=s;  % Relative standard deviation of the components  return

使用方法的例子:
CODE:
%Example  om=0.2+0.12*cos(0.4*(0:1023)); x=cos(cumtrapz(om)); [Y,A,F_r,dev]=hvd(x,3,0.05);  figure(1); subplot(211) plot([x']) axis([400 600 -1.1 1.1]) ylabel('Initial signal') subplot(212) plot(Y) axis([400 600 -1.1 1.1]) xlabel('Points') ylabel('Signal Components')  figure(2) psd(x)  %

文章乃身外之物,要多考虑编辑、审稿人和读者的感受。
3楼2016-01-04 19:11:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Mr__Right

专家顾问 (著名写手)

function [Y,A,om_r,dev]=hvd(x,n,fp);
%
% x - initial signal, n - number of decomposed components
% Y - decomposed components, A - component envelopes ,
% F_r - component relative angular frequency
% F=Fs*om_r/2/pi - Absolute frequecy [Hz], Fs -sampling frequency,
% dev=std(Y_i)/std(Y_1)) - relative standard deviation of the decomposed component
%
% Example:  [Y,A,om_r,dev]=hvd(x,2,0.02);
%
% LIMITATIONS:
%    The sampling frequency Fs has to be in the range Fs=(20-80)*f0.
%    The minimum of points in time domain is 230*3+1 = 691
%
% © 2011 Michael Feldman
% For use with the book "HILBERT TRANSFORM APPLICATION
% IN MECHANICAL VIBRATION", John Wiley & Sons, 2011
%

if n>7; disp('Max number of components not greater than 7'); end
if n<=0; disp('Number of components less than 1');Y=[];A=[];F_r=[];dev=[];return;end
x=x(; s(1)=std(x);
if s(1)==0,Y=[];A=[];F_r=[];dev=[];disp('Zero signal');return,end;
for k=1:n;
    [At,Ft,phit]=inst(x,1);
    omf=2*pi*lpf(Ft,fp);% Angular Frequency lowpass filtering (Smoothing)
    [yi,Ai,phi]=synchdem(x,omf,fp);
    Y(:,k)=yi; A(:,k)=Ai;
    om_r(:,k)=omf;            % Angular Frequency, [Radians]
        x=x-yi;
        s(k)=std(x)/s(1);
        if k == 7, dev=[1 diff(s)]; return,  end
end
dev=s;  % Relative standard deviation of the components

return



%Example

om=0.2+0.12*cos(0.4*(0:1023));
x=cos(cumtrapz(om));
[Y,A,F_r,dev]=hvd(x,3,0.05);

figure(1);
subplot(211)
plot([x'])
axis([400 600 -1.1 1.1])
ylabel('Initial signal')
subplot(212)
plot(Y)
axis([400 600 -1.1 1.1])
xlabel('Points')
ylabel('Signal Components')

figure(2)
psd(x)

%
文章乃身外之物,要多考虑编辑、审稿人和读者的感受。
4楼2016-01-04 19:12:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

czhujian

金虫 (初入文坛)

引用回帖:
4楼: Originally posted by Mr__Right at 2016-01-04 19:12:33
function =hvd(x,n,fp);
%
% x - initial signal, n - number of decomposed components
% Y - decomposed components, A - component envelopes ,
% F_r - component relative angular frequency
% F=Fs*om_r ...

好像程序不全,请问inst()这个函数是什么?
5楼2016-03-18 10:07:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Mr__Right

专家顾问 (著名写手)

【答案】应助回帖

引用回帖:
5楼: Originally posted by czhujian at 2016-03-18 10:07:17
好像程序不全,请问inst()这个函数是什么?...

http://blog.csdn.net/stereohomology/article/details/50922144
文章乃身外之物,要多考虑编辑、审稿人和读者的感受。
6楼2016-03-18 12:00:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yangruizmd

新虫 (初入文坛)

引用回帖:
6楼: Originally posted by Mr__Right at 2016-03-18 12:00:33
http://blog.csdn.net/stereohomology/article/details/50922144...

您好,这个网页打不开,可以给一下全的希尔伯特振动分解的代码吗?谢谢啦
7楼2018-07-16 17:29:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 zhuxiaoxun 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 328求调剂,英语六级551,有科研经历 +5 生物工程调剂 2026-03-17 9/450 2026-03-21 23:32 by zhujy1982
[考研] 286分人工智能专业请求调剂愿意跨考! +4 lemonzzn 2026-03-17 8/400 2026-03-21 22:49 by lemonzzn
[考研] 资源与环境 调剂申请(333分) +5 holy J 2026-03-21 5/250 2026-03-21 22:42 by Catalysis25
[考研] 0805 316求调剂 +3 大雪深藏 2026-03-18 3/150 2026-03-21 18:55 by 学员8dgXkO
[考研] 0805材料320求调剂 +3 深海物语 2026-03-20 3/150 2026-03-21 15:46 by 无际的草原
[考研] 0856材料专硕353求调剂 +3 NIFFFfff 2026-03-20 3/150 2026-03-21 10:23 by luoyongfeng
[考研] 306求调剂 +4 chuanzhu川烛 2026-03-18 4/200 2026-03-21 08:25 by laoshidan
[考研] 南昌大学材料专硕311分求调剂 +6 77chaselx 2026-03-20 6/300 2026-03-21 07:24 by JourneyLucky
[考研] 316求调剂 +6 梁茜雯 2026-03-19 6/300 2026-03-21 06:32 by Ecowxq666!
[考研] 301求调剂 +10 yy要上岸呀 2026-03-17 10/500 2026-03-21 03:14 by JourneyLucky
[考研] 一志愿华南师大 070300(化学)304分求调剂 +3 0703武芊慧雪304 2026-03-18 3/150 2026-03-21 00:48 by JourneyLucky
[考研] 294求调剂材料与化工专硕 +15 陌の森林 2026-03-18 15/750 2026-03-20 23:28 by JourneyLucky
[考研] 350求调剂 +5 weudhdk 2026-03-19 5/250 2026-03-20 22:04 by luoyongfeng
[考研] 一志愿西南交通 专硕 材料355 本科双非 求调剂 +5 西南交通专材355 2026-03-19 5/250 2026-03-20 21:10 by JourneyLucky
[考研] 295材料求调剂,一志愿武汉理工085601专硕 +5 Charlieyq 2026-03-19 5/250 2026-03-20 20:35 by JourneyLucky
[考研] 求调剂 +3 eation27 2026-03-20 3/150 2026-03-20 19:32 by JourneyLucky
[考研] 一志愿中国海洋大学,生物学,301分,求调剂 +5 1孙悟空 2026-03-17 6/300 2026-03-19 23:46 by zcl123
[考研] 生物学调剂招人!!! +3 山海天岚 2026-03-17 4/200 2026-03-19 21:34 by 怎么释怀
[考研] 070300化学学硕求调剂 +6 太想进步了0608 2026-03-16 6/300 2026-03-16 16:13 by kykm678
[考研] 070303 总分349求调剂 +3 LJY9966 2026-03-15 5/250 2026-03-16 14:24 by xwxstudy
信息提示
请填处理意见