文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 工程科技 > 信息与通信 > 【matlab国外编程代写】EMD分解的matlab程序
侵权投诉

【matlab国外编程代写】EMD分解的matlab程序

EMD分解的matlab程序

%三次样条函数拟合成元数据包络线

N = length(x);

p = findpeaks(x);

s = spline([0 p N+1],[0 x(p) 0],1:N);

-------------------------------------------------------------------------------

--------------------------------------------------------------------------------

function n = findpeaks(x)

% Find peaks.找到极值 ,n为极值点所在位置

% n = findpeaks(x)

n = find(diff(diff(x) > 0) < 0);

u = find(x(n+1) > x(n));

n(u) = n(u)+1;

----------------------------------------------------------------------------------------

function plot_hht00(x,Ts)

% 双边带调幅信号的EMD分解

% Plot the HHT.

% plot_hht(x,Ts)

%

% :: Syntax

% The array(列) (取样周期). % Func : emd

% Get HHT.

clear all;

% 调幅信号

x=sin(2*pi*t);

s1 = getspline(x);%上包络线

s2 = -getspline(-x);%上包络线

x1 = (s1+s2)/2;%此处的x2为文章中的h

figure;

plot(t,x);xlabel('Time'), ylabel('Amplitude');title('双边带调幅信号');hold on; plot(t,s1,'-r');

plot(t,s2,'-r');

plot(t,x1,'g');

上一页第2页

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email