x=rand(4);
c1=pca(x,'algorithm','eig','economy',false)
d1=pcacov(cov(x))
If you use the eig algorithm and set economy to false, outputs will be equal.
Reference:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!