clear all
close all force
%-----------------------------------
  disp('Cats 1: PCA with cats')
  lw = 3; 
  set(0, 'DefaultAxesFontSize', 16);
  fs = 17;
  msize = 20;


load('C:\STAT\Descriptive\Descriptivedat\cats')
%    cat is a data structure
%    cat.cat: [121x1 double]
%    cat.nsteps: [121x1 double]
%    cat.stancedur: [121x1 double]
%    cat.hipheight: [121x1 double]
%    cat.velocity: [121x1 double]
X = [ cat.cat, cat.nsteps, cat.stancedur, cat.hipheight, cat.velocity];
imagesc(X)
Z=zscore(X);

[coeffs, scores, latent] = pca(Z);
coeffs
latent


