MATLAB Answers

How to extract a column numerical data as strings?

1 view (last 30 days)
Leon
Leon on 7 Apr 2020
Commented: Leon on 7 Apr 2020
I have some data stored in xlsx format. There is always a column data called "Station IDs". Sometimes it is numerical and sometimes it is strings. I'm using readtable to read the xlsx file.
T=readtable('test.xlsx');
My program can automaticall identifically the column numer (n). I can get the whole column of data as:
A = T.(n);
Here is my question. How do I get the column values as strings no matter it is originally numerical or strings.
Thanks.

  0 Comments

Sign in to comment.

Accepted Answer

More Answers (0)

Sign in to answer this question.

Products


Release

R2020a

Translated by