最简单的方法就是, 直接用函数pca替换函数princomp. In release R2012b, we added the new PCA function to replace the PRINCOMP function. 参考文献 http://mathforum.org/kb/message.jspa?messageID=9353597