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

조회 수: 3 (최근 30일)
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
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 CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by