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 CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by