How to create a load file with header and category?

4 vues (au cours des 30 derniers jours)
Siti Suhaila
Siti Suhaila le 15 Août 2018
Commenté : Stephen23 le 15 Août 2018
Referring to fisheriris data set, I would like to create a Mat file that able to load in Matlab that comprises of numeric and a string value. Enclosed below are my data. I realize that in fisheriris there are two separate attributes (1) meas hold numeric / float data and (2)species hold string data. My question is how to do that? How to store two attributes within the load Mat file. Thank you in advance.
  1 commentaire
Stephen23
Stephen23 le 15 Août 2018
Some ideas:
  • use a table.
  • use a cell array (not recommended).
  • use separate arrays (simplest and most efficient).

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by