Created
November 3, 2014 18:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function feat = compute3axialFeat(data) | |
X = data(:,1); % X axis | |
Y = data(:,2); % Y axis | |
Z = data(:,3); % Z axis | |
XYZ = sqrt((X.^2+Y.^2+Z.^2)); | |
% Compute mean, standard deviation, max and min features | |
feat = [mean(X) mean(Y) mean(Z) mean(XYZ) std(X) std(Y) std(Z) std(XYZ) max(X) max(Y) max(Z) max(XYZ) min(X) min(Y) min(Z) min(XYZ) ]; | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment