how can I do PCA on a table ?
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
LO
am 30 Mai 2019
Kommentiert: Star Strider
am 7 Jun. 2019
I have a 3000 x 18 table containing 18 variables (one per column) of both numerical and categorical type (6 categorical).
I would liket to do PCA on the whole dataset
but the command
[coeff,score]=pca(mytable) does not work.
any idea on how to proceed ?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 30 Mai 2019
The pca function only accepts single-precision or double-precision numerical arrays. You most likely need to use the table2array (link) function first, to get the numeric data out of your table and into a form that pca can use.
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dimensionality Reduction and Feature Extraction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!