matrix with mixed data ?

10 views (last 30 days)
LO on 30 May 2019
Commented: LO on 5 Mar 2024
I have some variables of mixed type (categorical and numerical)
I would like to build a table or cell array (or a matrix in general) in which all of them are listed, one per column.
categorical values can be repeated for certain row ranges and can be equal, numerical data are individually different.
what type of matrix would be better to perform statistics ?
a table ? a cell array?
thanks !

Accepted Answer

Jos (10584)
Jos (10584) on 30 May 2019
A table is the most obvious choice for this, especially if you want to do statistics. I suggest you read the manual on tables.
ErikaZ on 4 Mar 2024
LO, were you able to run CATPCA in Matlab?
LO on 5 Mar 2024
No, but I ended up using a package for R-studio (Factominer) which was quite handy and easy to use. I would recommend trying:

Sign in to comment.

More Answers (0)


Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!