To build a PCA model in matlab, we can use the built-in pca
function. Here's an example:
main.m446 chars16 lines
To calculate confidence intervals for the loadings (coefficients) of the principal components, we can use the coefCI
function from the statistics toolbox. Here's an example:
main.m272 chars7 lines
This will output a 95% confidence interval for the coefficients (loadings) of the first principal component.
gistlibby LogSnag