how to read xls file with char value?

21 ビュー (過去 30 日間)
fred bnm
fred bnm 2016 年 10 月 27 日
コメント済み: Walter Roberson 2016 年 10 月 27 日
after using xlsread function,Only numerical output variable but Character variable can not be read pleas guide me.

採用された回答

Star Strider
Star Strider 2016 年 10 月 27 日
Use xlsread with at least two outputs:
[num,str] = xlsread(filename);
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 10 月 27 日
I have found that pretty much every time that I need strings from a .xls or .xlsx file, that I need to use the third output from xlsread, the "raw" output. -- otherwise it gets too messy to try to figure out which numbers correspond to which strings, in my experience.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by