Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
I am new to stats and matlab too.
I have 294*40 matrix named pcaInput and I write
pcaInput = load('formatData.txt'); % pca Input will be of 294*40
pcaOutput=pca(pcaInput)
%that's it
My code is of two lines only. As per the tutorial , it should give me a matrix of 40*40 but it is giving me a matrix of 40*1. where I am going wrong ?
As per the tutorial , this output is unacceptable. I searched on the internet for that but , can not find any article on this topic.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!