How to import numerical columns as strings?

2 ビュー (過去 30 日間)
Xiaoyu Xu
Xiaoyu Xu 2019 年 12 月 9 日
コメント済み: Stephen23 2019 年 12 月 9 日
I am trying to import data from a .tsv file by using tdfread. One of the variables take values like "0000897069-09-001106". Matlab mistakenly imports it as numerical (897069). How can I import it as a string?
  1 件のコメント
Stephen23
Stephen23 2019 年 12 月 9 日
"How can I import it as a string?"
Import the filedata using textscan, specifying the format yourself.

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by