- use a table.
- use a cell array (not recommended).
- use separate arrays (simplest and most efficient).
How to create a load file with header and category?
1 次查看(过去 30 天)
显示 更早的评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/193834/image.jpeg)
1 个评论
Stephen23
2018-8-15
Some ideas:
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!