correlation - Why PCA gives vector as output for 294*40 matrix in matlab -


i new stats , matlab too. have feature selection in project used principle component analysis(pca).

i referred tutorial use pca in matlab

my code given below,

 pcainput = rand(294,40);  disp(size(pcainput))     % output 294 40    pcaoutput=pca(pcainput);  disp(size(pcaoutput))    % output 40 1 , unacceptable per tutorial  %that's 

as per tutorial , if input matrix of pca() function has p variables , output p*p matrix.so function should give me matrix of 40*40 giving me matrix of 40*1. going wrong ?

as per tutorial , output unacceptable. searched on internet , can not find article on topic.

enter image description here


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -