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

3 ビュー (過去 30 日間)
Mario Gutiérrez Morales
Mario Gutiérrez Morales 2020 年 7 月 11 日
コメント済み: Prabhan Purwar 2020 年 7 月 14 日
Matlab seems not to recognize the .mat format or don't detect correctly. I specially want to create a TabularTextDatastore
  2 件のコメント
Prabhan Purwar
Prabhan Purwar 2020 年 7 月 14 日
Please attach the sample file you want to read and a more descriptive description of your problem would be helpful.
Mario Gutiérrez Morales
Mario Gutiérrez Morales 2020 年 7 月 14 日
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?

サインインしてコメントする。

回答 (1 件)

Prabhan Purwar
Prabhan Purwar 2020 年 7 月 14 日
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 件のコメント
Mario Gutiérrez Morales
Mario Gutiérrez Morales 2020 年 7 月 14 日
Thanks again.
Prabhan Purwar
Prabhan Purwar 2020 年 7 月 14 日
It's good practice to accept answers if it's helpful, so that it can act as a reference for others.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by