matlab eemd输出,如何使用eemd工具包
直接调用eemd就可以啦。下面的eemd程序有注释,不过是英文版的,也不难理解。仔细阅读下你就都会啦。
function allmode=eemd(Y,Nstd,NE)
% This is an EMD/EEMD program
%
% INPUT:
% Y: Inputted data;1-d data only
% Nstd: ratio of the standard deviation of the added noise and that of
% Y; Nstd = (0.1 ~ 0.4)*std(Y).
% NE: Ensemble number for the EEMD, NE = 10-50.
% OUTPUT:
% A matrix of N*(m+1) matrix, where N is the length of the input
% data Y, and m=fix(log2(N))-1. Column 1 is the original data, columns 2, 3, ...
% m are the IMFs from high to low frequency, and comlumn (m+1) is the
% residual (over all trend).
%
% NOTE:
% It should be noted that when Nstd is set to zero and NE is set to 1, the
% program degenerates to a EMD program.(for EMD Nstd=0,NE=1)
% This code limited sift number=10 ,the stoppage criteria can't change.
% References:
% Wu, Z., and N. E Huang (2008),
% Ensemble Empirical Mode Decomposition: a noise-assisted data analysis method.
% Advances in Adaptive Data Analysis. Vol.1, No.1. 1-41.
%
% code writer: Zhaohua Wu.
% footnote:S.C.Su 2009/03/04
%
% There are three loops in this code coupled together.
% 1.read data, find out standard deviation ,devide all data by std
% 2.evaluate TNM as total IMF number--eq1.
% TNM2=TNM+2,original data and residual included in TNM2
% assign 0 to TNM2 matrix
% 3.Do EEMD NE times-----------loop EEMD start
% 4.add noise
% 5.give initial values before sift
% 6.start to find an IMF------IMF loop start
% 7.sift 10 times to get IMF------sift loop start and end
% 8.after 10 times sift --we got IMF
% 9.subtract IMF from data ,and let the residual to find next IMF by loop
% 6.after having all the IMFs-------------IMF loop end
% 9.after TNM IMFs ,the residual xend is over all trend
% 3.Sum up NE decomposition result--------loop EEMD end
% 10.Devide EEMD summation by NE,std be multiply back to data
%% Association: no
% this function ususally used for doing 1-D EEMD with fixed
% stoppage criteria independently.
%
% Concerned function: extrema.m
% above mentioned m file must be put together
%function allmode=eemd(Y,Nstd,NE)
%part1.read data, find out standard deviation ,devide all data by std
xsize=length(Y);
dd=1:1:xsize;
Ystd=std(Y);
Y=Y/Ystd;
%part2.evaluate TNM as total IMF number,ssign 0 to N*TNM2 matrix
TNM=fix(log2(xsize))-1; % TNM=m
TNM2=TNM+2;
for kk=1:1:TNM2,
for ii=1:1:xsize,
allmode(ii,kk)=0.0;
end
end
%part3 Do EEMD -----EEMD loop start
for iii=1:1:NE, %EEMD loop NE times EMD sum together
%part4 --Add noise to original data,we have X1
for i=1:xsize,
temp=randn(1,1)*Nstd; % add a random noise to Y
X1(i)=Y(i)+temp;
end
%part4 --assign original data in the first column
for jj=1:1:xsize,
mode(jj,1) = Y(jj); % assign Y to column 1of mode
end
%part5--give initial 0to xorigin and xend
xorigin = X1; %
xend = xorigin; %
%part6--start to find an IMF-----IMF loop start
nmode = 1;
while nmode <= TNM,
xstart = xend; %last loop value assign to new iteration loop
%xstart -loop start data
iter = 1; %loop index initial value
%part7--sift 10 times to get IMF---sift loop start
while iter<=10,
[spmax, spmin, flag]=extrema(xstart); %call function extrema
%the usage of spline ,please see part11.
upper= spline(spmax(:,1),spmax(:,2),dd); %upper spline bound of this sift
lower= spline(spmin(:,1),spmin(:,2),dd); %lower spline bound of this sift
mean_ul = (upper + lower)/2; %spline mean of upper and lower
xstart = xstart - mean_ul; %extract spline mean from Xstart
iter = iter +1;
end
%part8--subtract IMF from data ,then let the residual xend to start to find next IMF
xend = xend - xstart;
nmode=nmode+1;
%part9--after sift 10 times,that xstart is this time IMF
for jj=1:1:xsize,
mode(jj,nmode) = xstart(jj);
end
end
%part10--after gotten all(TNM) IMFs ,the residual xend is over all trend
% put them in the last column
for jj=1:1:xsize,
mode(jj,nmode+1)=xend(jj);
end
%after part 10 ,original + TNM IMFs+overall trend ---those are all in mode
allmode=allmode+mode;
end %part3 Do EEMD -----EEMD loop end
%part11--devide EEMD summation by NE,std be multiply back to data
allmode=allmode/NE;
allmode=allmode*Ystd;
matlab eemd输出,如何使用eemd工具包相关推荐
- MATLAB格式化输出控制
MATLAB格式化输出控制 format 默认格式 format short 5字长定点数 format long 15字长定点数 format short e 5字长浮点数 format long ...
- 怎么把matlab中的图导出,matlab的数据能保存到excel表格-如何将matlab 中输出的图形保存到Excel中去,详细点...
怎样将MATLAB中的数据输出到excel中 数据保存到excel文件 xlswrite(xlsfile, data, sheet, range); % sheet 和 range可以不指定 如: x ...
- matlab ip 大端,MATLAB格式化输出控制
MATLAB格式化输出控制 format 默认格式 format short 5字长定点数 format long 15字长定点数 format short e 5字长浮点数 format long ...
- matlab矩阵输出txt文件中,matlab怎么把矩阵输出到txt
1.matlab如何输出这样的矩阵到txt 带有非数值字符的输出,除了上面同学提到的自定义输出格式以外,还可以将其看成字符串进行输出.如下: clear clc %构造A矩阵 A = 1:9; A = ...
- Matlab——Simulink输出的数据怎么利用plot函数绘图
Matlab--Simulink输出的数据怎么利用plot函数绘图 1.将需要导出的数据添加至To Workspace模块. 2.设置To Workspace模块的名称并配置好模式,一般选择array ...
- matlab结果输出到文本的方法
matlab程序输出到文本,目前熟悉的有两种方法 1.输出类型为科学计数法:格式为 save fliename.txt variable -ASCII save EDNS1.txt E ...
- matlab covm,biosig4octmat-2.88 Matlab 脑电信号转mat数据工具包, 研究的福音。 238万源代码下载- www.pudn.com...
文件名称: biosig4octmat-2.88下载 收藏√ [ 5 4 3 2 1 ] 开发工具: matlab 文件大小: 5925 KB 上传时间: 2014-05-23 下载次数: ...
- matlab tcpip数据解析,Matlab数据输出、从MATLAB 以tcpip形式传输数据到 vvvv
Matlab数据输出..从MATLAB 以tcpip方式传输数据到 vvvv 想要使用vvvv进行控制,但是数据是从matlab里算出的 就想到tcp/ip方式连接 查找很多资料,可大多数都是在MAT ...
- matlab 怎么打矩阵,matlab怎么打印矩阵 matlab 如何输出矩阵?
matlab 如何输出矩阵 a %注意变量a后面没有";"号,即可输出disp(a) Matlab常用生成矩阵函数: zeros(m,n) 生成一个 m 行 n 列的零矩阵,m=n ...
- matlab 输出矩阵 逗号,matlab 矩阵输出的数值之间同时需要字符串
matlab 矩阵输出的数值之间同时需要字符串 mip版 关注:235 答案:3 悬赏:30 解决时间 2021-01-20 04:07 已解决 2021-01-19 06:57 我用如下的程序 ...
最新文章
- java 二维数组作为参数传递_java JNI 二维数组作为方法参数传递给本地
- 前端笔试题小结(一)
- java 加载资源文件
- 20年备受关注的6款数据工具!谁最好用?毫无争议的答案来了
- 数据结构实验 寻找数组主元素(2013考研题)
- 在fmri研究中,cca的应用历史
- 软件工程第一次作业(2)
- ID3DXMesh接口 创建自己的立方体网格
- 工业中常见的有塑胶模、五金冲压模、压铸模、吹塑模、挤塑模
- 接口测试常见问题及答案
- 差分码、相对码、绝对码、空号差分码、传号差分码
- DTMF信号检测分析(Matlab)
- 游戏开发学习路线——游戏引擎原理
- 强化学习必知二要素:计算效率和样本效率
- [青海、甘南之行散记] 当风吹过高原,一颗心在说话
- 【机器学习】gini系数的计算
- Nginx 配置多个SSL域名指向不同端口
- ## 纯干货|UI设计字体分类、使用标准及测量内容
- 应用程序清单 Manifest 中各种 UAC 权限级别的含义和效果
- 生产环境如何关闭报错功能_知识分享---如何区分前端与后端bug
热门文章
- 计算机操作员高级教学大纲,计算机操作员课程教学大纲.doc
- 学习新浪微博计数服务
- 渗透测试工程师的Linux学习之路
- php mysql 微博系统_基于校网学堂的校园微博系统设计与实现(PHP,MySQL)(含录像)
- 系统集成项目管理工程师07《项目质量管理》
- linux防火墙查看状态firewall、iptable
- 微信公众号群发模板消息占用每月4次群发次数吗
- 产品经理—怎么用KANO模型给众多需求进行优先级排序?
- can协议crc计算_CAN协议教程|CAN报文分析
- GIS投影、坐标系、坐标系转换