# How to find which features have been selected by PCA algorithm?

I used PCA function in MATLAB to decrease features on my data set.

By this code I can reduce features from 12 to 8(as an example). It works good but my question is that how can I found with feature have been removed or which feature are selected on the result?

[~, pca_scores, ~, ~, var_explained] = pca(myDataSet, 'NumComponents', 8);


• [Coeff, SCORE, LATENT, TSQUARED, EXPLAINED] = pca(myDataSet, 'NumComponents', 8); The Coeff matrix tells you how to convert 12 to 8, the first component is: $Coeff(1,1)*myDataSet(:,1) + Coeff(2,1)*myDataSet(:,2) + Coeff(3,1)*myDataSet(:,3) + Coeff(4,1)*myDataSet(:,4) + ... + Coeff(12,1) * myDataSet(:,12)$ and so on... – Juan Esteban de la Calle Apr 23 '19 at 20:59