How can I create a database from mat-file which contains a 1x1 struct format?

Matlab seems not to recognize the .mat format or don't detect correctly. I specially want to create a TabularTextDatastore

2 Comments

Please attach the sample file you want to read and a more descriptive description of your problem would be helpful.
I'd like to use datastore with tabular text option, because I saw it in a talk. The only difference is they used a .csv file instead a .mat. Can I achieve the same with a .mat file?

Sign in to comment.

Answers (1)

Hi,
Kindly have a look at the following link to know about supported files in different Datastore.
For .mat files, fileDatastore is recommended as shown in the following example
  • openExample('matlab/ReadDatastoreOfMATFilesExample').
Thanks.

6 Comments

Thank you very much!! Another doubt, do you know when is useful use database instead a simple table format? Because I have 150 Mb of data and I don't know what is more useful in this case
Datastore is used for large data which you don't want to load at once either due to load time or memory constraints.
I know, and because of that, do you think that 150 Mb is enough to be considered large data or not? Thanks.
No, but it's really subjective to your hardware capability.
It's good practice to accept answers if it's helpful, so that it can act as a reference for others.

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!