If your data are in the matrix X and ndim is the number of attributes you want to retain, then you can use
[residuals,reconstructed] = pcares(X,ndim);
then reconstructed is what you want.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!