How to read out the strings from this Excel file?

조회 수: 1 (최근 30일)
Leon
Leon 2020년 12월 3일
답변: Swetha Polemoni 2020년 12월 5일
Attached is the Excel file.
Here is the code I use to read values out of the Excel file:
T1 = readtable ('test.xlsx');
Unfortunately, the strings are now stored as NaN in the variable T1.
I have many such files. Sometimes, this column could be all numerical, sometimes, all strings, and sometimes a mix.
Thanks.
  댓글 수: 1
KSSV
KSSV 2020년 12월 3일
Read the documentation, there are options to keep the data as it is unchanged while reading.

댓글을 달려면 로그인하십시오.

답변 (1개)

Swetha Polemoni
Swetha Polemoni 2020년 12월 5일
Hi Leon,
You can try using the following line of code.
[~,~,T] = xlsread ('test.xlsx');

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by