x=[1,2,3;2,1,3]';
>> [COEFF, SCORE, latent, tsquare] = pca (x, "Economy", false, "weights", [1 2 1], "variableweights", "variance")
COEFF =
0.6325 -0.6325
0.7416 0.7416
SCORE =
-0.622019 0.959119
-0.505650 -0.505650
1.633319 0.052180
latent =
1.7830
0.7170
tsquare =
1.3333
0.6667
1.3333
tsquare =
1.5000
0.5000
1.5000