Untitled
public text v1 · immutable>> matrix = [ [-1 1]; [1 -1];];
>> mds = MatlabModelDataSanitizer(matrix,[], 1, [-2],true)
Calls written & deleted to: /tmp/lastoutput-mds-7
mds =
ca.ubc.cs.beta.smac.matlab.MatlabModelDataSanitizer@43ec5bab
>> mds.getPCACoefficients()
ans =
2
>> mds.getPCAVectors()
ans =
-0.707106781186547 0.707106781186547
>> [pccoeff,pcVec] = pca(matrix,1)
pccoeff =
4
pcVec =
-0.707106781186547
0.707106781186547
>>