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');
【matlab国外编程代写】多智能图-势场法程序matlab_信息与通信_工程科技_专业资料。多智能图-势场法程序matlab%main %障碍物和目标,起始位置都已知的路径规划,...
【matlab国外编程代写】霍夫曼编码的MATLAB实现_计算机软件及应用_IT/计算机_专业资料。霍夫曼编码的MATLAB实现A=[0.4,0.2,0.2,0.1,0.1];%信源的概率分布...
【matlab国外编程代写】GPS捕获解算matlab代码_数学_自然科学_专业资料。GPS捕获解算matlab代码%This Function Compute Azimuth and Elevation of satellite from ...
【matlab国外编程代写】MATLAB低通滤波程序_电子/电路_工程科技_专业资料。MATLAB低通滤波程序%本程序为傅里叶滤波扣本底子程序,采用 MATLAB 语言编写。频率周期 fs...
【matlab国外编程代写】Matlab的光伏应用_数学_自然科学_专业资料。Matlab的光伏应用function srad = solarradiation(dem,lat,cs,r) % PUPROSE: Calculate solar ...
【matlab国外编程代写】matlab定位算法_信息与通信_工程科技_专业资料。matlab定位算法clc clear SamNum=100; TestSamNum=101; SP=0.6; ErrorLimit=.9; %...
【matlab国外编程代写】matlab递归算法_数学_自然科学_专业资料。matlab递归算法function [sum,maxnum,sumnum,R] = digui(inputnum,addnum,F) sum2=zeros(100)...
【matlab国外编程代写】GPS信号捕获matlab仿真_信息与通信_工程科技_专业资料。GPS信号捕获matlab仿真clear; %指标是 signalpower=-185dBW,此时可以进行室内定位; %...
【matlab国外编程代写】MATLAB 局部直方图均衡化_计算机软件及应用_IT/计算机_专业资料。MATLAB 局部直方图均衡化function g = localhisteq1(f, m, n)%%%局部直...
【matlab国外编程代写】matlab GUI串口通信设计_电子/电路_工程科技_专业资料。...[1 0/255 0]); end % 中断处理程序 function recive_data(t, event, ...
热门文档