The attached file is matlab file contains matrix (A) for the absorbance of the two compounds, the first 9 column is for compound x and the last 10 column is for compound y
matrix C for concentration, I made the following but the results not good
[U,S,V]=svd(A)
T =A*V
V (loading) and T(Score)
regression vector (b)=V(:,1:19)*inv(S(:,1:19))*U(:,1:19)'*C
c estimated=(T*V')*b
(T, V' for unknown) Can help me