24小时热门版块排行榜    

Znn3bq.jpeg
查看: 2402  |  回复: 6
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

zhuxiaoxun

新虫 (初入文坛)

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

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

» 猜你喜欢

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

已阅   回复此楼   关注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的回帖
查看全部 7 个回答

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的回帖

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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 药学专硕调剂 +9 ? 一路生?花? 2026-04-10 11/550 2026-04-16 10:49 by noqvsozv
[考研] 化学070300 求调剂 +25 哈哈哈^_^ 2026-04-12 25/1250 2026-04-16 10:47 by Espannnnnol
[考研] 求调剂推荐 +8 小聂爱学习 2026-04-14 8/400 2026-04-16 07:22 by 学员JpLReM
[考研] 297工科调剂? +14 河南农业大学-能 2026-04-13 15/750 2026-04-15 13:25 by 黑科技矿业
[考研] 367求调剂 +11 hffQAQ 2026-04-09 11/550 2026-04-14 17:48 by lhj2009
[考研] 366求调剂 +11 不知名的小卅 2026-04-11 11/550 2026-04-14 15:50 by zs92450
[基金申请] RY:中国产出的科学垃圾论文,绝对数量和比例都世界第一 +6 zju2000 2026-04-14 17/850 2026-04-14 14:34 by jurkat.1640
[考研] B区0809 ,数一英一,290 求调剂 +3 泠潍1111 2026-04-12 4/200 2026-04-13 20:35 by 学员JpLReM
[考研] 302求调剂 +10 易!? 2026-04-13 10/500 2026-04-13 19:04 by lbsjt
[考研] 材料考研调剂 +29 云木达达 2026-04-11 31/1550 2026-04-13 13:32 by lyh鲁老师
[考研] 生物学调剂 +11 小冉要努力 2026-04-10 13/650 2026-04-13 11:46 by 电化学及催化
[考研] 一志愿东北大学控制工程085406数二英二385,求调剂 +8 Ezra_Zhang 2026-04-09 8/400 2026-04-11 09:15 by 猪会飞
[考研] 材料与化工调剂 +12 否极泰来2026 2026-04-10 13/650 2026-04-11 00:28 by wangjihu
[考研] 调剂 +12 卷卷卷心菜_ 2026-04-09 13/650 2026-04-10 22:36 by Ftglcn90
[考研] 263能源动力专硕求调剂 +3 加大号饭盒袋 2026-04-10 3/150 2026-04-10 22:23 by 286640313
[考研] 22408 366分,本科211,一志愿西工大 +4 Rubt 2026-04-09 4/200 2026-04-10 19:51 by chemisry
[考研] 中科院总分315求调剂 +8 lallalh 2026-04-09 8/400 2026-04-10 19:30 by dick_runner
[考研] 282,电气工程专业,求调剂,不挑专业 +9 jggshjkkm 2026-04-10 9/450 2026-04-10 14:55 by 逆水乘风
[考研] 已调剂 +18 柴郡猫_ 2026-04-09 19/950 2026-04-09 22:10 by 柴郡猫_
[考研] 348求调剂 +3 candyyyi 2026-04-09 3/150 2026-04-09 17:20 by 段伟艳
信息提示
请填处理意见