Read a table with numbers and strings

33 ビュー (過去 30 日間)
Dori Lavie
Dori Lavie 2021 年 5 月 12 日
回答済み: Star Strider 2021 年 5 月 12 日
I want to read a table which contains both numbers and strings. I tried using readtable but some of the columns include both of them, so instead of strings i'm getting NaN.
Any ideas how to solve it? It's okay for me if such a mix column will be read as a column of strings.
Thank you!

採用された回答

Star Strider
Star Strider 2021 年 5 月 12 日
I would use the readcell function (introduced in R2019a), then create a table from the processed data to determine how best to represent the file contents.
If you do not have readcell, experiment with fileread and go from there.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by