So I have to import data from a excel file (xx.csv), it has data types as character and Ascii-real. I used num=xlsread(filename), this opens the columns with numbers . How do I open columns with data type as character??

답변 (1개)

Star Strider
Star Strider 2016년 6월 2일

0 개 추천

To retrieve the string or non-numeric data, use two outputs from xlsread:
[num, str] = xlsread(filename);
The ‘num’ variable will have the numeric values, and the ‘str’ variable will have the non-numeric (character) values as a cell array.

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

질문:

ck
2016년 6월 2일

답변:

2016년 6월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by