When processing images one tool being used is the principal component analysis (PCA). Be able to provide the code using MATLAB syntax for calculation of the PCA of e.g. 2000 vectorized images of size 500x500 pixels being stacked as column vectors in the matrix Im while the PCA shall span a 100-dimensional space. You can make use of predefined MATLAB functions for basic operations like ∗, /, (.)′, eig(.), eigs(.) but NOT pca(.) or cov(.)!