フィルターのクリア

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 Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by