How to fix the principal component analysis error in MATLAB
I happened to a MATLAB problem, and the error looks like this: Error using pca Too many input arguments. Error in mdscale (line 413) [~, score] = pca(Y, 'Economy', false); Error in demo_libsvm_test1 (line 140) newCoor = mdscale(distanceMatrix, 2); When I debug my code step by step, the error comes from here: distanceMatrix = pdist(heart_scale_inst, 'euclidean'); (line 139) newCoor = mdscale(distanceMatrix, 2); (line 140) Everything above the two lines are all right. I do not know how to fix the problem. I use MATLAB 2014a. How can I fix it?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.