フィルターのクリア

xlsread doesn't read a column that contains string in the cells with unknown number of rows

5 ビュー (過去 30 日間)
Hi all
I am trying to read from an xlsx Excel file some rows in clumn 1 that are strings.
xlsread alone does not function
how to read all and put into a list ?
  9 件のコメント
Bob Thompson
Bob Thompson 2019 年 6 月 20 日
A conversion to what? What are you looking to do with it? all(1) is a cell class element, but all{1} is a string class, which can be used as an input for other commands, such as a file reading function.
farzad
farzad 2019 年 6 月 20 日
Conversion between classes But I think I'm convinced
Thank you so much

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

採用された回答

Dimitar Georgiev
Dimitar Georgiev 2019 年 6 月 20 日
You can use readcell, for example,
example = readcell('example.xlsx','Range','A2:P5');
Now you can extract strings from the cell array.
I would recommend you to read:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by