This function process the original matrix row by row. Firstly compute the mean vector and save it. Then scale the matrix and compute the eigenvector and eigenvalue by matlab function. Finally project the matrix according to the eigensapce.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.