필터 지우기
필터 지우기

Import excel file!

조회 수: 1 (최근 30일)
ck
ck 2016년 6월 2일
답변: Star Strider 2016년 6월 2일
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일
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.

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by