features_matrix.m
来自「vector to matrix function」· M 代码 · 共 16 行
M
16 行
%This function computes the features matrix
%The features which computed are: variance (energy), skewness,...
function [Xf] = features_matrix (W)
[n,m]=size(W); %dimensions of the features matrix
for k=1:1:m
Xf(1,k) = var (W(:,k)) ;
Xf(2,k) = moment (W(:,k),2) ;
Xf(3,k) = skewness (W(:,k)) ;
Xf(4,k) = moment (W(:,k),3) ;
Xf(5,k) = kurtosis (W(:,k)) ;
Xf(6,k) = moment (W(:,k),4) ;
Xf(7,k) = corrcoef (W(:,k)) ;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?