Hi
I want to do a PCA (principal component analysis) with Octave. According to what is stated here http://osdir.com/ml/gnu.octave.general/2004-05/msg00038.html Here is what I did
octave:1> X = transpose(dlmread("data.txt"));
octave:2> size(X)
ans =
1 198
octave:3> C = cov(X)
C
= 37.531
octave:4> [v, D] = eig(C)
v = 1
D = 37.531
octave:5> PC1 = X*v[:,198];
parse error:
syntax error
>>> PC1 = X*v[:,198];
^
So why do I get that syntax error? Any feedback is appreciated.